Author: david.lloyd(a)jboss.com
Date: 2008-03-20 19:37:14 -0400 (Thu, 20 Mar 2008)
New Revision: 3689
Modified:
remoting2/branches/2.x/build.xml
Log:
Centralize the security manager properties up at the top of build.xml. Add a the logging
security manager by default, which will log all access violations in the results file.
Modified: remoting2/branches/2.x/build.xml
===================================================================
--- remoting2/branches/2.x/build.xml 2008-03-20 21:51:13 UTC (rev 3688)
+++ remoting2/branches/2.x/build.xml 2008-03-20 23:37:14 UTC (rev 3689)
@@ -29,8 +29,12 @@
<property name="compile.source"
value="${ant.java.version}"/>
<property name="compile.target"
value="${ant.java.version}"/>
- <!-- set the security manager information for unit tests -->
- <property name="java.security.policy"
value="${basedir}/test.policy"/>
+ <!-- set the security manager information for unit tests -->
+ <property name="java.security.policy"
value="${basedir}/test.policy"/>
+ <!--<property name="java.security.manager"
value=""/>-->
+ <property name="java.security.manager"
value="org.jboss.test.security.LoggingSecurityManager"/>
+ <!--<property name="java.security.debug"
value="access,failure"/>-->
+ <property name="java.security.debug" value=""/>
<!-- ================================================================== -->
<!-- Sets bind address and port used by jrunit/jgroups multicast socket -->
@@ -932,10 +936,11 @@
<jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
<classpath>
<path refid="tests.classpath"/>
- <pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
+ <!--<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>-->
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -984,8 +989,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -1040,9 +1046,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
- <sysproperty key="build.home" value="${basedir}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<sysproperty key="jrunit.bind_addr"
value="${bind.address}"/>
@@ -1072,8 +1078,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -1108,8 +1115,9 @@
<path refid="${classpath}"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -1152,8 +1160,9 @@
<path refid="${classpath}"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -1202,8 +1211,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
@@ -1232,8 +1242,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jrunit.bind_addr"
value="${bind.address}"/>
@@ -1297,8 +1308,9 @@
<path refid="tests.classpath"/>
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<!-- this is needed for the
remoting.marshall.dynamic.remote.MarshallerLoadingServer -->
@@ -1327,8 +1339,9 @@
<pathelement
location="${output.lib.dir}/jboss-remoting-tests.jar"/>
<!--<path refid="third_party.classpath"/>
-->
</classpath>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="ant.library.dir"
value="${ant.library.dir}"/>
<sysproperty key="jrunit.bind_addr"
value="${bind.address}"/>
@@ -1789,8 +1802,9 @@
<jvmarg value="-Dclient.path=${client.classpath}"/>
<jvmarg value="-Dserver.path=${server.classpath}"/>
<!--<jvmarg
value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>-->
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -1823,8 +1837,9 @@
<jvmarg
value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg
value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -1858,8 +1873,9 @@
<jvmarg
value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg
value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -1894,8 +1910,9 @@
<jvmarg
value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg
value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -1931,8 +1948,9 @@
<jvmarg
value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
extension="-${jboss-junit-configuration}.xml"/>
@@ -2051,8 +2069,9 @@
<jvmarg
value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg
value="-Dclient.check_connection=${client.check_connection}"/>
<jvmarg
value="-Dserver.check_connection=${server.check_connection}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -2079,8 +2098,9 @@
<jvmarg value="-Dclient.path=${client.classpath}"/>
<jvmarg value="-Dserver.path=${server.classpath}"/>
<jvmarg
value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -2109,8 +2129,9 @@
<jvmarg value="-Dclient.path=${client.classpath}"/>
<jvmarg value="-Dserver.path=${server.classpath}"/>
<jvmarg
value="-Djboss.remoting.pre_2_0_compatible=${jboss.remoting.pre_2_0_compatible}"/>
- <sysproperty key="java.security.manager" value=""/>
+ <sysproperty key="java.security.manager"
value="${java.security.manager}"/>
<sysproperty key="java.security.policy"
value="${java.security.policy}"/>
+ <sysproperty key="java.security.debug"
value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="jboss-junit-configuration"
value="${jboss-junit-configuration}"/>
<formatter
classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
Show replies by date