comment and clean up

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191653 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-06-21 12:16:26 +00:00
parent 94529a2bd8
commit 86aa7ce7da
1 changed files with 4 additions and 2 deletions

View File

@ -558,8 +558,6 @@ public class DefaultPluginManager
Map resolved = result.getArtifacts(); Map resolved = result.getArtifacts();
List files = new ArrayList();
for ( Iterator it = resolved.values().iterator(); it.hasNext(); ) for ( Iterator it = resolved.values().iterator(); it.hasNext(); )
{ {
Artifact artifact = (Artifact) it.next(); Artifact artifact = (Artifact) it.next();
@ -572,6 +570,10 @@ public class DefaultPluginManager
pluginDescriptor.setClassRealm( pluginContainer.getContainerRealm() ); pluginDescriptor.setClassRealm( pluginContainer.getContainerRealm() );
// TODO: this is probably overkill as it is rarely used - can we use a mojo tag to signal this will be
// used or check its configuration? Also, when it is used, perhaps it is more effecient to resolve
// everything at once and apply the exclusion filter when constructing the plugin container above.
// Check this out with yourkit
ArtifactFilter distroProvidedFilter = new InversionArtifactFilter( artifactFilter ); ArtifactFilter distroProvidedFilter = new InversionArtifactFilter( artifactFilter );
ArtifactResolutionResult distroProvidedResult = artifactResolver ArtifactResolutionResult distroProvidedResult = artifactResolver