BuildDoctor

Build Doctor

Continuous Integration, Delivery and Devops Consulting

Contact Us

(+44) 207 183 0323
hello@build-doctor.com
@builddoctor

Get in touch!

Monthly Archives: December 2008

Build Refactoring: Delete Boolean Property

Posted on by Julian Simpson

(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 [...]

The Build Doctor Ltd, Suite 17189, Lower Ground Floor, 145-157 St John Street, London, EC1V 4PW

© Build Doctor 2007-2012