Conditionally Delete in Ant

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-05-02T19:22:52Z Indexed on 2010/05/02 19:28 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

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>

© Stack Overflow or respective owner

Related posts about ant

Related posts about java