ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <ralfhauser@gmx.ch> 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.

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

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).

Stefan

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


Mime
View raw message