mirror of https://github.com/apache/maven.git
o applying brian's patch which makes this IT work with the new/old classworlds
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@486153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
066ef42901
commit
44dd974c00
|
@ -132,6 +132,13 @@ public class Enhance
|
|||
{
|
||||
ClassLoader sysClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
URL[] urls = null;
|
||||
|
||||
if ( sysClassLoader instanceof URLClassLoader )
|
||||
{
|
||||
urls = ( (URLClassLoader) sysClassLoader ).getURLs();
|
||||
}
|
||||
else
|
||||
{
|
||||
Field field;
|
||||
try
|
||||
{
|
||||
|
@ -162,8 +169,8 @@ public class Enhance
|
|||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
//URL[] urls = ( (URLClassLoader) sysClassLoader ).getURLs();
|
||||
this.getLog().info( "Initial Classpath:" );
|
||||
for ( int i = 0; i < urls.length; i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue