I have a script inside the WEB-INF folder that the Java runs. When I deploy the WAR, there are no execute permissions (644 instead of 755). How do I set the permissions of files inside the WAR?
In the webapps directory (or whatever directory you have the app deployed), just run a
and you should be good.
|show 1 more comment|
Since the scripts belong to the application, have it set the permissions upon initialization. For a servlet in the init method something like:
allows the application to take care of setting permissions for its own files