You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Lev Serebryakov <le...@serebryakov.spb.ru> on 2013/05/06 16:14:57 UTC
How to apply mapper to filelist to get other fileset or filelist?
Hello, User.
Is it possible to apply mapper to <filelist> to get other <filelist>
or, even better, <fileset>? For example, if I have list of classes
and root source dir, how could I get <fileset> which contains all
source files? Something like this:
<fileset dir="${root}">
<filelist files="${list.of.classes}/>
<unpackagemapper from="*" to="*.java />
</fileset>
But it doesn't work :(
--
// Black Lion AKA Lev Serebryakov <le...@serebryakov.spb.ru>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to apply mapper to filelist to get other fileset or filelist?
Posted by Antoine Levy Lambert <an...@gmx.de>.
Hello Lev,
Ant has a concept of mapped resources.
Read this : http://ant.apache.org/manual/Types/resources.html#mappedresources
Best regards,
Antoine
On May 6, 2013, at 10:14 AM, Lev Serebryakov wrote:
> Hello, User.
>
> Is it possible to apply mapper to <filelist> to get other <filelist>
> or, even better, <fileset>? For example, if I have list of classes
> and root source dir, how could I get <fileset> which contains all
> source files? Something like this:
>
> <fileset dir="${root}">
> <filelist files="${list.of.classes}/>
> <unpackagemapper from="*" to="*.java />
> </fileset>
>
> But it doesn't work :(
>
> --
> // Black Lion AKA Lev Serebryakov <le...@serebryakov.spb.ru>
>
>