File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: Inserting Directories Into Jar With Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: Inserting Directories Into Jar With Ant" Watch "NX: Inserting Directories Into Jar With Ant" New topic
Author

NX: Inserting Directories Into Jar With Ant

Jason Mowat
Ranch Hand

Joined: Aug 17, 2003
Posts: 79
Greetings,
I am trying to use ant to build my submission jar file. It works fine except that it is not creating my docs directory in the jar file. It is using the base path of the jar and making it relative from there.

The problem with this is that "docs", which is a subdirectory in my project, is not being created in the jar; it's files and subdirectories are being placed in the base of the jar.
How can I tell ant to create the docs dir and place all of my docs fileset in there?
TIA,
Jason
Roel De Meester
Greenhorn

Joined: Dec 22, 2003
Posts: 10
Instead of writing

Try this ...

[ January 17, 2004: Message edited by: Roel De Meester ]
[ January 17, 2004: Message edited by: Roel De Meester ]
Jason Mowat
Ranch Hand

Joined: Aug 17, 2003
Posts: 79
Roel,
Thanks. That works like a charm!
Cheers,
Jason
 
Consider Paul's rocket mass heater.
 
subject: NX: Inserting Directories Into Jar With Ant