You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jakob Fix <ja...@gmail.com> on 2010/06/04 23:15:37 UTC

fileset and java tasks?

Hi, I'd like to execute a java task on each file in a given directory,
but I can't see how to combine the <fileset> and <java> tasks.
(Regarding the output of the <java> task I intend to save it into a
new file using the i/o redirector.)

any help with this dilemma is greatly appreciated.

cheers,
Jakob.

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


AW: fileset and java tasks?

Posted by Ja...@rzf.fin-nrw.de.
<antconrib:for param="file"> 
  <fileset/>
  <sequential>
    <java><arg line="@{file}"/></java>
  </sequential>
</antcontrib:for>

Jan

>-----Ursprüngliche Nachricht-----
>Von: Jakob Fix [mailto:jakob.fix@gmail.com] 
>Gesendet: Freitag, 4. Juni 2010 23:16
>An: Ant Users List
>Betreff: fileset and java tasks?
>
>Hi, I'd like to execute a java task on each file in a given directory,
>but I can't see how to combine the <fileset> and <java> tasks.
>(Regarding the output of the <java> task I intend to save it into a
>new file using the i/o redirector.)
>
>any help with this dilemma is greatly appreciated.
>
>cheers,
>Jakob.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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