You can also load different property files based on the env property:
<property file="${env}.properties"/>
and there, configure what purpose to call:
in DEV.properties:
default.target=dev.build
in PROD.properties:
default.target=prod.build
and then call the target based on the property:
<target name="default">
<antcall target="${default.target}"/>
</target>
<target name="dev.build">
....
</target>
<target name="prod.build">
....
</target>
, .