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:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
