Reasons for using Ant Properties files over “Properties Tasks”
I'm currently working with some developers who like to set up Ant tasks that define environment specific variables rather than using properties files. It seems they prefer to do this because it's easier to type: ant <environment task> dist Than it is to type: ant -propertyfile <environment property file> dist So for example: <project name="whatever" default="dist"> <target name="local"> <property name="webXml" value="WebContent/WEB-INF/web-local.xml"/> </target> <target name="remote"> <property name="webXml" value="WebContent/WEB-INF/web-remote.xml"/> </target> <target name="build"> <!-- build