Conditionally Delete in Ant
- by kunjaan
I want to delete the directory if the property "delete-compiled-dir" is set to true. Right now I have
<target name="deleted-after-compilation" depends="compile,jar">
<condition property="${delete-compiled-dir}" value="true">
<delete dir="${compilation-dir}" />
</condition>
<echo> Deleting Compiled Directory Classes </echo>
</target>