ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Any way to avoid copying to keep dir structure intact?
Date Sat, 26 Jan 2002 10:23:49 GMT
Have a look at <zipfileset>.  It will do this very thing.   The
documentation for <zip> has info on this - and <jar> is a subclass of <zip>.

    Erik


----- Original Message -----
From: "Duffey, Kevin" <KDuffey@BUYMEDIA.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Saturday, January 26, 2002 1:04 AM
Subject: RE: Any way to avoid copying to keep dir structure intact?


> Forgot to add one thing to this..
>
> Sometimes, I would like to pull items from one dir, and stick them in
> another dir, again without copying. For example:
>
> c:/images/*.gif
>
> into the jar as
>
> /web/doc/img/*.gif
>
>
> I answered my previous question..I figured out how to do it, keeping the
> "same" dir intact. But if I want to pull in files like above, is there a
way
> to do this? Doesn't seem to be any way to specify the desitination dir in
> the jar file when grabbing files in this manner.
>
> Thanks.
>
>
> > -----Original Message-----
> > From: Duffey, Kevin [mailto:KDuffey@BUYMEDIA.com]
> > Sent: Friday, January 25, 2002 9:59 PM
> > To: 'Ant Users List'
> > Subject: Any way to avoid copying to keep dir structure intact?
> >
> >
> > Hi all,
> >
> > I am jarring up many dirs and files into a single jar. The
> > dirs are spread
> > around in different areas. Right now I have to copy all files
> > from each dir
> > into the dir structure below a common dir. Then I jar up that DIR. The
> > process of copying lots of files just to keep the dir
> > structure intact is
> > slow, so I was wondering if there is a way to "pull" these
> > files from their
> > dir into the jar file as is. For example:
> >
> > c:/images/*.gif
> > c:/project/source/*.java
> > c:/dir/bin/*.class
> >
> > I want the jar dir structure to look like:
> >
> > /images/*.gif
> > /source/*.java
> > /bin/*.class
> >
> > Right now, I have to copy the three dirs into a commong root
> > like /jar-dir,
> > then jar via the fileset tag using dir="/jar-dir". I thought
> > I saw this
> > before using some fancy work with filesets to pull the dir
> > from whatever
> > root, keeping it intact..
> >
> > thanks.
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:ant-user-help@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message