Peter Donald <donaldp@apache.org> wrote:
> yep but that is not wildcard matching. That Is a specific task
> matching a specific pattern in a specific directory ;)
Let's not start splitting hairs. What it will look like is something
close to
<transform executable="gcc" targetdir="build/C">
<arg value="-c" />
<srcfile />
<arg value="-o" />
<targetfile />
<fileset dir="src/C" />
<mapper type="glob" from="*.c" to="*.o" />
</transform>
which is quite general and does wildcard matching, IMHO. It can be
used for other things as well, like
<transform executable="jade" targetdir="doc/docbook">
<arg line="-t rtf -d mystylesheet.dsl" />
<srcfile />
<fileset dir="doc/docbook" />
<mapper type="glob" from="*.sgml" to="*.rtf" />
</transform>
and there might even be a mapper type="regexp" ...
Stefan
|