On 2009-10-09, Francis GALIEGUE <f...@one2team.com> wrote: > <project name="testme" default="doit" basedir=".">
> <target name="check"> > <uptodate property="noneed"> > <srcfiles dir="." includes="t.xml"/> > <mapper type="regexp" from="xml$" to="txt"/> > </uptodate> > </target> means map anything that ends with "xml" to "txt" - no prefix here. > Say that t.txt doesn't exist. The first time the file is run, then it > is created. So far, so good, that's what is expected. > run ant -v, here's what I see in the output: > --- > check: > [uptodate] t.xml added as txt doesn't exist. > ---- Note it says "txt", not "t.txt". You want <mapper type="regexp" from="(.*)xml$" to="\1txt"/> or even just <mapper type="glob" from="*.xml" to="*.txt"/> Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org