Hi,
I attach a small patch that makes the forking on tests work. the current
implementation set's the fork property before any tests are added to the
batch, so nothing happens.
<<fork.txt>> /peter
---------------------------------
Peter Neubauer
Software Manager
ScanCoin Industries AB
Index: magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java
===================================================================
--- magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java (revision
46979)
+++ magic/src/main/org/apache/avalon/tools/tasks/JUnitTestTask.java (working copy)
@@ -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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]