[bvalid-codewatch] SF.net SVN: bvalid: [33] trunk
Status: Beta
Brought to you by:
cwilper
|
From: <cw...@us...> - 2006-05-08 23:14:04
|
Revision: 33 Author: cwilper Date: 2006-05-08 13:26:30 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/bvalid/?rev=33&view=rev Log Message: ----------- test forks jetty by default, but not for junit task Modified Paths: -------------- trunk/build.xml trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-05-08 20:18:28 UTC (rev 32) +++ trunk/build.xml 2006-05-08 20:26:30 UTC (rev 33) @@ -121,7 +121,7 @@ <junit printsummary="no" haltonfailure="yes" showoutput="true" filtertrace="true"> <formatter type="plain" usefile="false"/> <classpath refid="test.path"/> - <sysproperty key="propname" value="propvalue"/> + <sysproperty key="jetty.fork" value="false"/> <test name="net.sf.bvalid.BValidPackageTestSuite"/> </junit> </target> Modified: trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java =================================================================== --- trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java 2006-05-08 20:18:28 UTC (rev 32) +++ trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java 2006-05-08 20:26:30 UTC (rev 33) @@ -22,7 +22,12 @@ // sub-packages suite.addTest(CatalogPackageTestSuite.suite()); - return new JettyTestSetup(suite, 7357, "/", ".", true); + boolean fork = true; + String forkValue = System.getProperty("jetty.fork"); + if (forkValue != null) { + fork = !(forkValue.equalsIgnoreCase("false") || forkValue.equalsIgnoreCase("no")); + } + return new JettyTestSetup(suite, 7357, "/", ".", fork); } public static void main(String[] args) throws Exception { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |