• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How-To: Include a directory and its contents when JAR'ing

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

In using third party tools (e.g. Crystal Reports Java Viewer), I am required to include a directory of tools in my WAR file. The directory that needs to be included is called "crv11" and is located at the same level as WEB-INF in my project:



When I create the WAR file, I want the whole directory included. The only way I have been able to accomplish this is using the <zipfileset> tag:



This works, but I want to be sure that I am actually doing this correctly or should be using a patternset defined somewhere else. Basically, is there any alternative?

Thank you,

mk
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are lots of ways to do some things.

Example from ant manual on war task uses a zipfileset just like you did.


Maybe if I edit this enough times I'll get it right.
[ February 08, 2005: Message edited by: Carol Enderlin ]
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic