Skip to content

Tag Archives: build refactoring

Build Refactoring: Delete Boolean Property

(image taken from Kurtis Scaletta’s photostream) Last time, you read about the extract target refactoring. Today, I’m going to show you one that I love to perform: delete boolean property. Have a look the smell first: <project default="unit_tests"> <property name="junit.enabled" value="true" /> <target name="-check_junit_enabled"> <condition property="junit.really.enabled"> <and> <equals arg1="${junit.enabled}" arg2="true" /> </and> </condition> </target> <target [...]

Build Refactoring: Extract Target

Your build files probably need some TLC. Sorry. It’s true. If you’re lucky enough to work on a project with clean code (and let’s face it, most codebases aren’t too pretty), then you’re even luckier to have a nice clean build. Wait! Don’t go getting upset, I can help you. I’ll be introducing some build [...]

some Phing refactorings

Raphael Stolt, a PHP developer and blogger has written an article called “Six valuable Phing build file refactorings”. He’s taken the refactorings from my ThoughtWorks Anthology article and translated to Phing, the PHP build tool (which is based on Ant). Sweet! Link

My article on Refactoring Ant Builds is published

The Pragmatic Programmers have just published the first volume of the ThoughtWorks Anthology! My article on Refactoring in Ant is included: I distilled my experiences fixing broken Ant builds for ThoughtWorks into a collection of refactorings that can be applied to a crufty build. You can buy PDF or paper copies via the Prags, but [...]