mirror of https://github.com/apache/maven.git
o signatures in surefire changed, but i have everything on my machine so
the problems don't show up until beaver time. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba64bcb3ce
commit
212d3b3d24
|
@ -61,13 +61,13 @@ public class SurefireBooter
|
||||||
|
|
||||||
Object batteryExecutor = batteryExecutorClass.newInstance();
|
Object batteryExecutor = batteryExecutorClass.newInstance();
|
||||||
|
|
||||||
Method run = batteryExecutorClass.getMethod( "run", new Class[] { List.class, List.class, ClassLoader.class } );
|
Method run = batteryExecutorClass.getMethod( "run", new Class[] { List.class, List.class, ClassLoader.class, String.class } );
|
||||||
|
|
||||||
ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader();
|
ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader();
|
||||||
|
|
||||||
Thread.currentThread().setContextClassLoader( surefireClassLoader );
|
Thread.currentThread().setContextClassLoader( surefireClassLoader );
|
||||||
|
|
||||||
Boolean result = (Boolean) run.invoke( batteryExecutor, new Object[]{ reports, batteries, surefireClassLoader } );
|
Boolean result = (Boolean) run.invoke( batteryExecutor, new Object[]{ reports, batteries, surefireClassLoader, "dummy" } );
|
||||||
|
|
||||||
Thread.currentThread().setContextClassLoader( oldContextClassLoader );
|
Thread.currentThread().setContextClassLoader( oldContextClassLoader );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue