AW: How to execute a subtask conditionally if used several times

2005-06-16 Thread Jan.Materne
Maybe macrodef would better than a called target ... Jan -Ursprngliche Nachricht- Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 19:34 An: Ant Users List Betreff: Re: How to execute a subtask conditionally if used several times You can put

Re: How to execute a subtask conditionally if used several times

2005-06-16 Thread Zarar Siddiqi
Ant-contrib's foreach tag can do it. foreach target=my-target http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html Zarar - Original Message - From: [EMAIL PROTECTED] To: user@ant.apache.org Sent: Thursday, June 16, 2005 1:07 AM Subject: AW: How to execute a subtask

Re: How to execute a subtask conditionally if used several times

2005-06-16 Thread Zarar Siddiqi
As for executing it conditionally, you can use Ant-contribs if/else. http://ant-contrib.sourceforge.net/tasks/tasks/if.html Zarar - Original Message - From: [EMAIL PROTECTED] To: user@ant.apache.org Sent: Thursday, June 16, 2005 1:07 AM Subject: AW: How to execute a subtask

How to execute a subtask conditionally if used several times

2005-06-15 Thread Dr. Michael Lipp
Hi, I have a target that produces an output file based on an input file. I invoke this target several times using antcall with different pairs of input and output files (using antcallparam ...). As an optimization, I want to do the generation only if the input file is newer than the output file.

Re: How to execute a subtask conditionally if used several times

2005-06-15 Thread Alexey N. Solofnenko
You can put antcall inside apply. - Alexey. Dr. Michael Lipp wrote: Hi, I have a target that produces an output file based on an input file. I invoke this target several times using antcall with different pairs of input and output files (using antcallparam ...). As an optimization, I want to