ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurd...@yahoo.com>
Subject RE: Multiple directories in a jar?
Date Mon, 02 Oct 2000 21:01:29 GMT

Hi,

You should be able to use nested file sets to do this:

<jar jarfile="...">
	<fileset dir="${build.dir}/dir1"/>
	<fileset dir="${build.dir}/dir2"/>
</jar>


Adam

> -----Original Message-----
> From: Wes Moulder [mailto:wmoulder@axyssolutions.com]
> Sent: Tuesday, 3 October 2000 1:55 AM
> To: Ant User Mailing List (E-mail)
> Subject: Multiple directories in a jar?
>
>
> I'm wanting to include multiple directories merged into one jar file.  I'm
> using this as my jar task:
> <jar jarfile="${project.lib}\test.jar" basedir="${build.dir}"
> includes="dir1/**,dir2/**"/>
>
> The way I have it now, it will give me:
> dir1/com/sun/estore/blah.class
> dir2/com/sun/estore/blahblah.class
>
> as opposed to merging the directories, giving me:
> com/sun/estore/blah.class
> com/sun/estore/blahblah.class
>
> On the command line, this is possible with the -C option.  Is
> there either,
> a way to duplicate the -C option in the current jar taskdef (I didn't see
> anything favorable looking through the code) or is there a way to
> temporarily alter the directory scanner's basedir?  Or better yet, am I
> missing something obvious that makes this trivial?
>
> Thanks in advance,
> --Wes Moulder
> Axys Solutions, LLC


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message