ant-user mailing list archives

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

Hi,

My ant code looks something like this:

...

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

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

...

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?

Thanks,
walki
-- 
View this message in context: http://www.nabble.com/if-files-have-been-copied-physically%2C-then-execute-some-target-tp23452004p23452004.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message