Well, if they're all siblings then it could be easier (or at least not
require an external library) to turn the set of directories into a fileset
includes attribute and wrap that fileset in a mappedresources collection to
flatten, chaining that mapper to a globmapper if you need to place the
files in a particular package in the jar.
Matt
On Feb 14, 2014 11:21 AM, "Edwin Castro" <0ptikgh...@gmx.us> wrote:

> On 2/13/14, 11:45 PM, Matt Benson wrote:
> > The problem is that, presumably, you want the classes beneath the
> > class.dirs elements to be added to the jar relative to each element. Off
> > the top of my head it occurs to me that you could iterate using
> antcontrib
> > <for> and update the jar for each directory.
>
> In this particular case, all the classes in question are not in
> packages. Although they are kept in separate directories, they are all
> siblings to one another.
>
> I was under the impression that the <jar> task would not update a
> pre-existing jar. I'll try iterating through the directories using <for>.
>
> --
> Edwin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>

Reply via email to