[jboss-cvs] system2/src/tests/org/jboss/test/server/profileservice ...
Scott Stark
scott.stark at jboss.com
Tue Jul 18 00:40:01 EDT 2006
User: starksm
Date: 06/07/18 00:40:01
Modified: src/tests/org/jboss/test/server/profileservice
MainWithSimpleHotDeployTestCase.java
Log:
Validate that the jbosstest.support.dir exists and take it from the system environment if the property is not defined.
Revision Changes Path
1.4 +10 -1 system2/src/tests/org/jboss/test/server/profileservice/MainWithSimpleHotDeployTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MainWithSimpleHotDeployTestCase.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/tests/org/jboss/test/server/profileservice/MainWithSimpleHotDeployTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- MainWithSimpleHotDeployTestCase.java 18 Jul 2006 02:21:39 -0000 1.3
+++ MainWithSimpleHotDeployTestCase.java 18 Jul 2006 04:40:01 -0000 1.4
@@ -40,7 +40,7 @@
* @see
*
* @author Scott.Stark at jboss.org
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class MainWithSimpleHotDeployTestCase extends BaseTestCase
{
@@ -76,6 +76,15 @@
deployDirProp = deployDirEnv;
}
assertNotNull("jbosstest.deploy.dir != null", deployDirProp);
+ String supportDirEnv = System.getenv("jbosstest.support.dir");
+ String supportDirProp = System.getProperty("jbosstest.support.dir");
+ if( supportDirProp == null && supportDirEnv != null )
+ {
+ System.setProperty("jbosstest.support.dir", supportDirEnv);
+ supportDirProp = supportDirEnv;
+ }
+ assertNotNull("jbosstest.support.dir != null", supportDirProp);
+
String[] args = {"-c", "defaulthotdeploy"};
Main main = new Main();
main.boot(args);
More information about the jboss-cvs-commits
mailing list