[jboss-cvs] JBossAS SVN: r60038 - branches/Branch_4_2/test/src/main/org/jboss/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jan 26 19:48:22 EST 2007
Author: scott.stark at jboss.org
Date: 2007-01-26 19:48:22 -0500 (Fri, 26 Jan 2007)
New Revision: 60038
Modified:
branches/Branch_4_2/test/src/main/org/jboss/test/JBossTestCase.java
Log:
Default the build.testlog property if its not set to better integrate with running tests in an ide
Modified: branches/Branch_4_2/test/src/main/org/jboss/test/JBossTestCase.java
===================================================================
--- branches/Branch_4_2/test/src/main/org/jboss/test/JBossTestCase.java 2007-01-27 00:45:07 UTC (rev 60037)
+++ branches/Branch_4_2/test/src/main/org/jboss/test/JBossTestCase.java 2007-01-27 00:48:22 UTC (rev 60038)
@@ -73,6 +73,30 @@
public JBossTestCase(String name)
{
super(name);
+ /* Validate the build.testlog system property and set it it to the
+ * location of the log resource
+ */
+ String testlog = System.getProperty("build.testlog");
+ if( testlog == null )
+ {
+ // Try to set it to the log resource location
+ try
+ {
+ testlog = getResourceURL("log");
+ if( testlog != null )
+ {
+ System.setProperty("build.testlog", testlog);
+ }
+ else
+ {
+ // Default to cwd output/log
+ System.setProperty("build.testlog", "output/log");
+ }
+ }
+ catch(Exception ignore)
+ {
+ }
+ }
log = Logger.getLogger(getClass());
initDelegate();
}
More information about the jboss-cvs-commits
mailing list