maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r356198 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Date Mon, 12 Dec 2005 07:37:39 GMT
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 );
 



Mime
View raw message