ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tilburg <>
Subject RE: <apply executable> question
Date Fri, 23 Jan 2004 22:50:27 GMT
Thanks Stefan!

The batch file idea seems to be the best(easiest and quickest) solution.
Works great!


-----Original Message-----
From: Stefan Bodewig [] 
Sent: Thursday, January 22, 2004 11:14 PM
Subject: Re: <apply executable> question

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:

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

View raw message