org.jvnet.maven.plugin.antrun
Class AbstractArtifactsExclusionFilter
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.jvnet.maven.plugin.antrun.GraphFilter
org.jvnet.maven.plugin.antrun.ListFilter
org.jvnet.maven.plugin.antrun.AbstractArtifactsExclusionFilter
- All Implemented Interfaces:
- Cloneable, GraphVisitor
- Direct Known Subclasses:
- ExcludeArtifactsTransitivelyFilter, RemoveSpecificArtifactsFilter
public abstract class AbstractArtifactsExclusionFilter
- extends ListFilter
Base class for ListFilter
s that takes several nested <artifact> elements as parameters
to identify artifacts.
- Author:
- Kohsuke Kawaguchi
Field Summary |
protected Set<String> |
ids
IDs of the artifacts to exclude. |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
ids
protected final Set<String> ids
- IDs of the artifacts to exclude. "groupId:artifactId:classifier".
These three are sufficient to identify an artifact uniquely within the context of single project
and its dependency.
AbstractArtifactsExclusionFilter
protected AbstractArtifactsExclusionFilter(Collection<String> artifactIds)
throws IOException
- Throws:
IOException
AbstractArtifactsExclusionFilter
protected AbstractArtifactsExclusionFilter(String... artifactIds)
throws IOException
- Throws:
IOException
AbstractArtifactsExclusionFilter
protected AbstractArtifactsExclusionFilter(String artifactId)
throws IOException
- Throws:
IOException
AbstractArtifactsExclusionFilter
protected AbstractArtifactsExclusionFilter()
resolve
protected final void resolve()
- Resolves all the artifacts and computes
ids
.
This normally needs to be done at GraphVisitor.visit(DependencyGraph.Node)
,
because this implementation could be used as a filter.
Can be invoked multiple times safely.
addArtifact
protected void addArtifact(org.apache.maven.artifact.Artifact a)
addConfiguredArtifact
public void addConfiguredArtifact(ArtifactElement a)
- Nested <artifact> element can be used to specify what artifacts to exclude.
Copyright © 2011. All Rights Reserved.