ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: <apply executable> question
Date Fri, 23 Jan 2004 07:13:42 GMT
On Thu, 22 Jan 2004, Mike Tilburg <mtilburg@macromedia.com> wrote:

> I would like to have the output from each exec call to go into it's
> own .out file.

This is currently impossible with Ant and only Ant.

The easiest solution is to write a wrapper batch file that takes the
output file name as a parameter and then use apply with a mapper.

So the wrapper would be something like (sorry, I know virtually
nothing about Windows batch files)

myexe %1 %2

and you'd use

<apply executable="mywrapper.bat">
  <srcfile/>
  <targetfile/>
  <fileset dir="." includes="*.as"/>
  <mapper type="glob" from="*.as" to="*.out"/>
</apply>

Stefan

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


Mime
View raw message