avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 47463 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks
Date Wed, 29 Sep 2004 05:28:19 GMT
Author: niclas
Date: Tue Sep 28 22:28:18 2004
New Revision: 47463

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java
Log:
Applying patch provided by Peter Neubauer, to allow forking of tests.

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java	Tue
Sep 28 22:28:18 2004
@@ -230,11 +230,6 @@
         final JUnitTask.SummaryAttribute summary = new JUnitTask.SummaryAttribute();
         summary.setValue( "on" );
         junit.setPrintsummary( summary );
-        if( getForkProperty() )
-        {
-            junit.setFork( true );
-            junit.setDir( project.getBaseDir() );
-        }
         junit.setShowOutput( true );
         junit.setTempdir( working );
         junit.setReloading( true );
@@ -293,7 +288,12 @@
         junit.setErrorProperty( ERROR_KEY );
         junit.setFailureProperty( FAILURE_KEY );
         junit.setTaskName( getTaskName() );
-
+	if( getForkProperty() )
+        {
+            junit.setFork( true );
+            junit.setDir( project.getBaseDir() );
+        }
+        
         junit.execute();
     }
     

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message