News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Raphael Stolt's Blog:
Rolling your own Phing task
April 13, 2007 @ 10:22:00

Wanting to automate a common task he found himself doing, Raphael Stolt came up with his own process and use Phing to help.

To round off an older article on this blog called "Using the PHP 5 reflection API to keep track of unsolved refactorings" I wanted to automate the following task: collect and log some information about developer marked unsolved refactorings for a single class file or more common multiple files of an whole directory. And as I'm getting more and more acquainted with Phing I wanted to craft this custom task by using it's provided extension possibilities.

He gives examples of what the "unsolvedRefactoring" notation looks, the XML mapping for its definition, and the code that actually makes the mapping work - and makes it easy to pull out the needed information. There's two versions presented, one a normal pull and the other modified slightly to "actually retrieve the metadata of the methods marked as improveable via the @unsolvedRefactoring doclet". And, finally, the integration with Phing comes, showing how to run the files and what the results should look like.

0 comments voice your opinion now!
tutorial phing automated unsolved refactoring doclet tutorial phing automated unsolved refactoring doclet


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Installing PHP Extensions on Nitrous.io

IBM developerWorks: Understanding the Zend Framework, Part 2 (MVC & a Database)

AjaxRay.com: Extending Zend Form Element to create customized Phone number field

Web Developement Blog: Curl: Location redirect while open_basedir is set

Zend Developer Zone: Reading and Writing MP3 and Photo Metadata with PECL


Community Events





Don't see your event here?
Let us know!


introduction version community symfony framework list conference opinion laravel series podcast language library tool security interview voicesoftheelephpant composer release artisanfiles

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework