aspose file tools
The moose likes Java in General and the fly likes Maintaining File Permissions in a WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Maintaining File Permissions in a WAR file" Watch "Maintaining File Permissions in a WAR file" New topic
Author

Maintaining File Permissions in a WAR file

Savio Fernandes
Greenhorn

Joined: Apr 14, 2005
Posts: 16
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Maintaining File Permissions in a WAR file
 
Similar Threads
Unexpected Error
BeanDefinitionStoreException
Strange Ant Behavior
(ANT) Error: No source files and no packages been specified
Context and Session