o Added debug logging for mirrors

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-03-05 14:03:21 +00:00
parent 0d27705bc2
commit a27e6457b4
2 changed files with 20 additions and 8 deletions

View File

@ -173,13 +173,15 @@ public class DefaultArtifactRepository
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append( " id: " + getId() ).append( "\n" );
sb.append( " url: " + getUrl() ).append( "\n" );
sb.append( " layout: " + ( layout != null ? layout.getId() : "none" ) ).append( "\n" );
sb.append( "snapshot policy: [update => " + snapshots.getUpdatePolicy() ).append( "]\n" );
sb.append( " release policy: [update => " + releases.getUpdatePolicy() ).append( "]\n" );
sb.append( " id: " ).append( getId() ).append( "\n" );
sb.append( " url: " ).append( getUrl() ).append( "\n" );
sb.append( " layout: " ).append( layout != null ? layout.getId() : "none" ).append( "\n" );
sb.append( "snapshots: [enabled => " ).append( snapshots.isEnabled() );
sb.append( ", update => " ).append( snapshots.getUpdatePolicy() ).append( "]\n" );
sb.append( " releases: [enabled => " ).append( releases.isEnabled() );
sb.append( ", update => " ).append( releases.getUpdatePolicy() ).append( "]\n" );
return sb.toString();
}
}

View File

@ -304,7 +304,17 @@ public class DefaultMavenExecutionRequestPopulator
// </mirror>
// </mirrors>
request.setRemoteRepositories( repositorySystem.getMirrors( request.getRemoteRepositories() ) );
System.out.println( "ORIGINAL REPOSITORIES" );
for ( ArtifactRepository repo : request.getRemoteRepositories() )
{
System.out.println( repo );
}
request.setRemoteRepositories( repositorySystem.getMirrors( request.getRemoteRepositories() ) );
System.out.println( "MIRRORED REPOSITORIES" );
for ( ArtifactRepository repo : request.getRemoteRepositories() )
{
System.out.println( repo );
}
}
// ------------------------------------------------------------------------