axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r805298 - in /webservices/axis2/trunk/java/modules: distribution/src/main/files/conf/axis2.policy tool/script/axis2server.bat
Date Tue, 18 Aug 2009 07:28:55 GMT
Author: veithen
Date: Tue Aug 18 07:28:54 2009
New Revision: 805298

URL: http://svn.apache.org/viewvc?rev=805298&view=rev
Log:
Enabled the change in r804413 (Java 2 security) for Windows as well.

Modified:
    webservices/axis2/trunk/java/modules/distribution/src/main/files/conf/axis2.policy
    webservices/axis2/trunk/java/modules/tool/script/axis2server.bat

Modified: webservices/axis2/trunk/java/modules/distribution/src/main/files/conf/axis2.policy
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/distribution/src/main/files/conf/axis2.policy?rev=805298&r1=805297&r2=805298&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/distribution/src/main/files/conf/axis2.policy (original)
+++ webservices/axis2/trunk/java/modules/distribution/src/main/files/conf/axis2.policy Tue
Aug 18 07:28:54 2009
@@ -1,9 +1,9 @@
 grant codeBase "file:${axis2.home}/lib/-" {
     permission java.io.FilePermission "${axis2.home}", "read,write";
-    permission java.io.FilePermission "${axis2.home}/-", "read,write";
+    permission java.io.FilePermission "${axis2.home}${file.separator}-", "read,write";
     permission java.io.FilePermission "${java.io.tmpdir}", "read";
-    permission java.io.FilePermission "${java.io.tmpdir}/-", "read,write,delete";
-    permission java.io.FilePermission "${java.home}/lib/wsdl.properties", "read";
+    permission java.io.FilePermission "${java.io.tmpdir}${file.separator}-", "read,write,delete";
+    permission java.io.FilePermission "${java.home}${file.separator}lib${file.separator}wsdl.properties",
"read";
     permission java.net.SocketPermission "*", "resolve,connect,listen,accept";
     permission java.lang.RuntimePermission "*";
     permission java.util.PropertyPermission "*", "read";

Modified: webservices/axis2/trunk/java/modules/tool/script/axis2server.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/script/axis2server.bat?rev=805298&r1=805297&r2=805298&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/axis2server.bat (original)
+++ webservices/axis2/trunk/java/modules/tool/script/axis2server.bat Tue Aug 18 07:28:54 2009
@@ -38,21 +38,29 @@
 if "%AXIS2_HOME%"=="" set AXIS2_HOME=%DEFAULT_AXIS2_HOME%
 set DEFAULT_AXIS2_HOME=
 
+:loop
 if ""%1""==""-xdebug"" goto xdebug
+if ""%1""==""-security"" goto security
 if ""%1""==""-h"" goto help
 if ""%1""=="""" goto checkConf
 
 :xdebug
 set JAVA_OPTS= %JAVA_OPTS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000
-goto checkConf
+shift
+goto loop
+
+:security
+set JAVA_OPTS=%JAVA_OPTS% -Djava.security.manager -Djava.security.policy=%AXIS2_HOME%\conf\axis2.policy
-Daxis2.home=%AXIS2_HOME%
+shift
+goto loop
 
 :help
 echo  Usage: axis2server.bat
    
 echo  commands:    
-echo   -xdebug  Start Axis2 Server under JPDA debugger
-    
-echo   -h       help
+echo   -xdebug    Start Axis2 Server under JPDA debugger
+echo   -security  Enable Java 2 security
+echo   -h         help
 goto end
 
 



Mime
View raw message