You are viewing a plain text version of this content. The canonical link for it is here.
Posted to surefire-commits@maven.apache.org by jv...@apache.org on 2005/12/12 08:37:39 UTC
svn commit: r356198 -
/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Author: jvanzyl
Date: Sun Dec 11 23:37:37 2005
New Revision: 356198
URL: http://svn.apache.org/viewcvs?rev=356198&view=rev
Log:
o set the context classloader
Modified:
maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java?rev=356198&r1=356197&r2=356198&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java (original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java Sun Dec 11 23:37:37 2005
@@ -301,14 +301,10 @@
}
catch ( CommandLineException e )
{
- e.printStackTrace();
-
throw new Exception( "Error while executing forked tests.", e );
}
catch ( Exception e )
{
- e.printStackTrace();
-
throw new SurefireBooterForkException( "Error while executing forked tests.", e );
}
@@ -530,7 +526,7 @@
return p;
}
- f.deleteOnExit();
+ //f.deleteOnExit();
p.load( new FileInputStream( f ) );
@@ -587,6 +583,8 @@
String basedir = args[0];
ClassLoader classLoader = createForkingClassLoader( basedir );
+
+ Thread.currentThread().setContextClassLoader( classLoader );
setSystemProperties( basedir );