-DpropertyName=itsValue
例如,
<project> <target name="hi"> <property name="person" value="world"/> <echo message="Hello ${person}"/> </target> </project>
接着
ant -Dperson="MerryPrankster" hi
产量
[echo] Hello MerryPrankster