ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: <apply executable> question
Date Fri, 23 Jan 2004 07:13:42 GMT
On Thu, 22 Jan 2004, Mike Tilburg <> 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">
  <fileset dir="." includes="*.as"/>
  <mapper type="glob" from="*.as" to="*.out"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message