<target name="setupProduction" if="production">
<property name="lib" value="/usr/home/production/lib"/>
<property name="outputdir" value="/usr/home/production/classes"/>
To define a target that executes only if the production target is not set, use this:
<target name="setupDevelopment" unless="production">
<property name="lib" value="c:/hello/lib"/>
<property name="outputdir" value="c:/hello/classes"/>
Conditional execution of targets is another way to support multiple deployment environments.