[jboss-cvs] jrunit/src/main/org/jboss/jrunit/harness ...
Ron Sigal
ron_sigal at yahoo.com
Wed May 7 19:58:29 EDT 2008
User: rsigal
Date: 08/05/07 19:58:29
Modified: src/main/org/jboss/jrunit/harness TestDriver.java
Log:
JBREM-920: Added some system properties to be passed into client/server JVMs.
Revision Changes Path
1.24 +25 -0 jrunit/src/main/org/jboss/jrunit/harness/TestDriver.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TestDriver.java
===================================================================
RCS file: /cvsroot/jboss/jrunit/src/main/org/jboss/jrunit/harness/TestDriver.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- TestDriver.java 1 May 2008 03:04:57 -0000 1.23
+++ TestDriver.java 7 May 2008 23:58:29 -0000 1.24
@@ -723,6 +723,31 @@
if (property != null)
path += " -Djrunit.logdir=" + property + " ";
+ property = System.getProperty("java.security.manager");
+ if (property != null)
+ {
+ if ("".equals(property))
+ path += " -Djava.security.manager ";
+ else
+ path += " -Djava.security.manager=" + property + " ";
+ }
+
+ property = System.getProperty("java.security.policy");
+ if (property != null)
+ path += " -Djava.security.policy=" + property + " ";
+
+ property = System.getProperty("remoting.jar.dir");
+ if (property != null)
+ path += " -Dremoting.jar.dir=" + property + " ";
+
+ property = System.getProperty("build.home");
+ if (property != null)
+ path += " -Dbuild.home=" + property + " ";
+
+ property = System.getProperty("ant.library.dir");
+ if (property != null)
+ path += " -Dant.library.dir=" + property + " ";
+
if(vmArgs != null && vmArgs.length() > 0)
{
path += " " + vmArgs + " ";
More information about the jboss-cvs-commits
mailing list