David Corbin <[EMAIL PROTECTED]> wrote:

> <target name="foo">
>       <exec executable="foomaker">
>               <arg>foosrc</arg>
>       </exec>
> </target>
> 
> How do I get it to ONLY run when foosrc is newer than foo?
> Thanks.

Use <uptodate> to set a property if foo is not newer than foosrc and
add an unless attribute to the foo-Target.

In Ant 1.3 your problem could be solved as

<transform executable="foomaker">
  <srcfile />
  <fileset dir="." includes="foosrc" />
  <mapper type="glob" from="foosrc" to="foo" />
</transform>

Stefan

Reply via email to