You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ja...@rzf.fin-nrw.de on 2006/02/17 14:08:07 UTC
AW: how to exec with a set of files as multiple arguments?
<fileset id/>
<pathconvert/>
<exec>
<arg line/>
</>
Jan
>-----Ursprüngliche Nachricht-----
>Von: Paul Pogonyshev [mailto:p.pogonyshev@finamatics.com]
>Gesendet: Freitag, 17. Februar 2006 14:14
>An: user@ant.apache.org
>Betreff: how to exec with a set of files as multiple arguments?
>
>Hi,
>
>I need to execute a command with a large, not known in
>advance, number of files, each listed as separate argument. I
>have been unable to figure out how to do this with Ant.
>
>Roughly speaking, I want sth. like
>
> <exec executable="cat">
> <fileset>
> <include name="*.java"/>
> </fileset>
> </exec>
>
>except that I don't know how to convert the fileset into a set
>of <arg>s.
>
> <path id="foo">
> <fileset dir="...">
> <include name="*.java"/>
> </fileset>
> </path>
> <exec executable="cat">
> <arg pathref="foo"/>
> </exec>
>
>gives the files combined together in one argument...
>
>Paul
>
>---------------------------------------------------------------------
>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
Re: AW: how to exec with a set of files as multiple arguments?
Posted by Paul Pogonyshev <p....@finamatics.com>.
On 17 February 2006 15:08, Jan.Materne@rzf.fin-nrw.de wrote:
> <fileset id/>
> <pathconvert/>
> <exec>
> <arg line/>
> </>
Thanks, that works OK. <arg line=.../> is kind of deprecated,
but I assume there is no other way.
Thanks again.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org