ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: splitting "arg line" into multiple "arg value"s fails? Unable to execute command
Date Tue, 15 Oct 2002 05:57:20 GMT
On Mon, 14 Oct 2002, Ralf Hauser <> wrote:

> I was just about to suggest a version of apply that doesn't add the
> srcfile per default to the arguments:

Yep, this is needed.

> <mapper type="regexp" from="^(.+)\.m4$$" to="*.en.html"/>

So you want to delete all .en.html files where a corresponding .m4
file exists?  Use a <present> selector.

  <fileset dir="your-base-dir" includes="**/*.en.html">
    <present targetdir="your-base-dir">
      <mapper type="glob" from="*.en.html" to="*.m4"/>

and the includes attribute is probably redundant as the mapper would
drop all non-html files anyway.

> so I tried <dependset>

Should work as well, just put the <mapper> directly under the task (as
a sibling of <fileset> instead of as a child).


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

View raw message