ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Abley <james.ab...@volantis.com>
Subject Re: how to exec with a set of files as multiple arguments?
Date Fri, 17 Feb 2006 14:44:54 GMT
pathconvert?

http://ant.apache.org/manual/CoreTasks/pathconvert.html

On Fri, 2006-02-17 at 13:13, Paul Pogonyshev wrote:
> 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


Mime
View raw message