tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dany Crepin" <crepind...@wanadoo.be>
Subject FilePermission syntax under Windows
Date Thu, 13 Feb 2003 21:13:34 GMT
This is correct: 

grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}/webapps/my_app/file1.txt",
                                       "read,write,delete";
};

This is correct: 

grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}\\webapps\\my_app\\file1.txt",
                                       "read,write,delete";
};

This is NOT correct: 

grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}/webapps/my_app/-",
                                       "read,write,delete";
};

This is NOT correct: 

grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}\\webapps\\my_app\\-",
                                       "read,write,delete";
};

This is *correct*: 

grant codeBase "file:${catalina.home}/webapps/my_app/WEB-INF/-" {
     permission java.io.FilePermission "${catalina.home}${/}webapps${/}my_app${/}-",
                                       "read,write,delete";
};

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message