• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maintaining File Permissions in a WAR file

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

I am using ant to create a WAR file. I use the <jar> task for this purpose. This WAR file contains certain XML files, which I do not want to expose to the end user. However, the documentation for <Jar> clearly mentions that "file permissions will not be stored in the resulting jarfile."

When I deploy this WAR file on Tomcat, on a Unix platform, it extracts this WAR file into a directory. The XML files are extracted with default permissions, which allow any user to read these files.

Is there any way to specify permissions for files within a WAR, so that these permissions are maintained when the WAR file is extracted?

Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic