ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: How to merge jars and directories specified by path resource into a single jar
Date Fri, 14 Feb 2014 17:39:38 GMT
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.
On Feb 14, 2014 11:21 AM, "Edwin Castro" <> 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:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message