ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: Wild card values with exec task
Date Wed, 17 Nov 2004 07:27:49 GMT
> You probably want to use <apply>. It's like <exec> + fileset handling
> merged into one. --DD

My last use of <apply> is a long time ago, but I think <apply> is used for
invoking an external application for _each_ file in a fileset, not for the 
whole stuff.

So that (pseudo) code
   <apply exec="linker">
       <fileset dir="." includes="*.o"/>
would simply do that
   linker a.o
   linker b.o
   linker c.o

To get a command like
   linker a.o b.o c.o
you can simply convert a fileset to a property via <pathconvert> and a space
as delimiter.
   <fileset id="object.files" dir="." includes="*.o"/>
   <pathconvert property="object.list" refid="object.files" pathsep=" "/>
   <exec executable="linker">
      <arg line="${object.list}"/>


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message