|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.shared.artifact.filter.ScopeArtifactFilter
public class ScopeArtifactFilter
ArtifactFilter
implementation that selects artifacts based on their
scopes.
NOTE: None of the fine-grained scopes imply other scopes when enabled;
when fine-grained scope control is used, each scope must be enabled separately,
UNLESS the corresponding XXXWithImplications() method is used to enable that
scope.
Constructor Summary | |
---|---|
ScopeArtifactFilter()
Constructor that is meant to be used with fine-grained manipulation to enable/disable specific scopes using the associated mutator methods. |
|
ScopeArtifactFilter(String scope)
Constructor that uses the implied nature of Maven scopes to determine which artifacts to include. |
Method Summary | |
---|---|
boolean |
hasMissedCriteria()
|
boolean |
include(Artifact artifact)
|
boolean |
isIncludeCompileScope()
|
boolean |
isIncludeProvidedScope()
|
boolean |
isIncludeRuntimeScope()
|
boolean |
isIncludeSystemScope()
|
boolean |
isIncludeTestScope()
|
void |
reportFilteredArtifacts(Logger logger)
|
void |
reportMissedCriteria(Logger logger)
|
ScopeArtifactFilter |
reset()
Reset hit counts and tracking of filtered artifacts, BUT NOT ENABLED SCOPES. |
ScopeArtifactFilter |
setIncludeCompileScope(boolean includeCompileScope)
|
ScopeArtifactFilter |
setIncludeCompileScopeWithImplications(boolean enabled)
Manages the following scopes: system provided compile |
ScopeArtifactFilter |
setIncludeNullScope(boolean enable)
Determine whether artifacts that have a null scope are included or excluded. |
ScopeArtifactFilter |
setIncludeProvidedScope(boolean includeProvidedScope)
|
ScopeArtifactFilter |
setIncludeRuntimeScope(boolean includeRuntimeScope)
|
ScopeArtifactFilter |
setIncludeRuntimeScopeWithImplications(boolean enabled)
Manages the following scopes: compile runtime |
ScopeArtifactFilter |
setIncludeSystemScope(boolean includeSystemScope)
|
ScopeArtifactFilter |
setIncludeTestScope(boolean includeTestScope)
|
ScopeArtifactFilter |
setIncludeTestScopeWithImplications(boolean enabled)
Manages the following scopes: system provided compile runtime test |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScopeArtifactFilter()
public ScopeArtifactFilter(String scope)
Method Detail |
---|
public boolean include(Artifact artifact)
include
in interface ArtifactFilter
public String toString()
toString
in class Object
public void reportFilteredArtifacts(Logger logger)
reportFilteredArtifacts
in interface StatisticsReportingArtifactFilter
public void reportMissedCriteria(Logger logger)
reportMissedCriteria
in interface StatisticsReportingArtifactFilter
public boolean hasMissedCriteria()
hasMissedCriteria
in interface StatisticsReportingArtifactFilter
public boolean isIncludeCompileScope()
public ScopeArtifactFilter setIncludeCompileScope(boolean includeCompileScope)
public boolean isIncludeRuntimeScope()
public ScopeArtifactFilter setIncludeRuntimeScope(boolean includeRuntimeScope)
public boolean isIncludeTestScope()
public ScopeArtifactFilter setIncludeTestScope(boolean includeTestScope)
public boolean isIncludeProvidedScope()
public ScopeArtifactFilter setIncludeProvidedScope(boolean includeProvidedScope)
public boolean isIncludeSystemScope()
public ScopeArtifactFilter setIncludeSystemScope(boolean includeSystemScope)
public ScopeArtifactFilter setIncludeCompileScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeRuntimeScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeTestScopeWithImplications(boolean enabled)
public ScopeArtifactFilter setIncludeNullScope(boolean enable)
public ScopeArtifactFilter reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |