mirror of https://github.com/apache/maven.git
o Extended logging
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@707639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
91f5f40647
commit
eae70b057a
|
@ -143,6 +143,7 @@ public class LoadMojo
|
|||
try
|
||||
{
|
||||
Class type = classLoader.loadClass( name );
|
||||
getLog().info( "[MAVEN-CORE-IT-LOG] Loaded class from " + type.getClassLoader() );
|
||||
try
|
||||
{
|
||||
type = childClassLoader.loadClass( name );
|
||||
|
@ -179,6 +180,7 @@ public class LoadMojo
|
|||
catch ( ClassNotFoundException e )
|
||||
{
|
||||
// ignore, will be reported by means of missing keys in the properties file
|
||||
getLog().info( "[MAVEN-CORE-IT-LOG] Class not available" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -193,6 +195,7 @@ public class LoadMojo
|
|||
|
||||
// test ClassLoader.getResource()
|
||||
URL url = classLoader.getResource( path );
|
||||
getLog().info( "[MAVEN-CORE-IT-LOG] Loaded resource from " + url );
|
||||
if ( url != null && !url.equals( childClassLoader.getResource( path ) ) )
|
||||
{
|
||||
getLog().error( "[MAVEN-CORE-IT-LOG] Detected class loader defect while getting " + path );
|
||||
|
|
Loading…
Reference in New Issue