ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Moss <>
Subject Apply task argument issues...
Date Mon, 26 Sep 2005 16:51:07 GMT
I have an issue WRT the apply task. I need it to be much more flexible
than the documentation states it is. Let's say I'm using a tool that has
odd command line options like this:

    util.exe [options] +|-<filename>

    where options is optional and you must specify +<filename>
    or -<filename>

Given the current way in which the apply task is implemented, it seems
impossible to do in ant 1.6.5:

    <apply executable="util.exe" parallel="false">
       <arg value="+"/>
       <fileset dir="files/"/>

Wouldn't it make more sense to do the following:

    <apply executable="util.exe" parallel="false" srcproperty="srcfile">
       <arg value="+${srcfile}"/>
       <fileset dir="files/"/>

I can't understand why it was implemented as separate tags rather than
as properties. In my opinion, the latter example would be more in-step
with typical ANT thinking.

Anyway, does anyone know of a way to do what I want with the current
version of ant?


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

View raw message