o Fixed artifact filtering

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-18 19:19:32 +00:00
parent fc9b20303c
commit f755552cbe
1 changed files with 6 additions and 6 deletions

View File

@ -249,13 +249,13 @@ public class MavenProject
for ( Dependency d : getDependencies() )
{
Artifact dependencyArtifact = repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getScope(), d.getType() );
if ( filter != null )
Artifact dependencyArtifact =
repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getScope(),
d.getType() );
if ( filter == null || filter.include( dependencyArtifact ) )
{
if ( filter.include( dependencyArtifact ) )
{
artifacts.add( dependencyArtifact );
}
artifacts.add( dependencyArtifact );
}
}