Erik- Thanks. I had looked at zipfileset, but somehow missed the prefix option.
-Mike Monette -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 2:58 PM To: Ant Users List Subject: Re: Altering directory structur when placing a file in a .war Use: <zipfileset dir="/foo" includes="filename.txt" prefix="WEB-INF/bar"/> inside your <war> task. With my recent change, and I did this for this very reason actually, you can do this: <zipfileset file="/foo/filename.txt" prefix="WEB-INF/bar"/> (but that requires running a CVS version of Ant, not a released one). Erik Mike Monette wrote: > Hello, > > I've got a file in an existing directory structure (not mine), which > I'd like to include in a .war file. The directory structure where the > file resides is not the structure I'd like to see reflected in the > .war file. Is there a way to alter the target directory structure in > the war task? > > An illustration: > > Source file: /foo/filename.txt > > In the war file, I'd like it to go to WEB-INF/bar/filename.txt > > I apologize if this is a frequently asked question, but my searches > have come up empty. > > Thanks, > Mike Monette > > > > -- > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
