ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From walki2 <>
Subject if files have been copied physically, then execute some target
Date Fri, 08 May 2009 20:03:30 GMT


My ant code looks something like this:


<target name="copy_files">
    <copy todir="../new/dir">
        <fileset dir="src_dir"/>

<target name="run" depends="copy_files">
     <java jar="some_jar.jar" fork="true"/>


I would like the run target to be exectuted only if files have been copied.
If I do not do a clean and files have not been modified, no files are
actually copied but the run target is still executed.

How can I do this?

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message