Thursday, June 3, 2010

Ant Build Script

Setting property


<property name="component.version" value="1.0.01"/>



<property name="src.dir" value="./src"/>


Referring to a property

This prints the value set in the property dist.dir

<echo>${dist.dir}</echo>



Deleting a dir

<delete dir="${dist.dir}" verbose="false"/>



Creating a dir

<mkdir dir="${dist.dir}"/>



No comments:

Post a Comment