On Mon, 14 Oct 2002, Ralf Hauser <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>