You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Javier Fuchs <J_...@crm.com.ar> on 2002/03/05 19:05:20 UTC
RE: Any way to avoid copying to keep dir structure intact?
Fijate si te sirve esto
> -----Original Message-----
> From: Duffey, Kevin [SMTP:KDuffey@BUYMEDIA.com]
> Sent: Saturday, January 26, 2002 2:59 AM
> 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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>