public final class FilterUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
filterArtifacts(Set<Artifact> artifacts,
List<String> includes,
List<String> excludes,
boolean strictFiltering,
boolean actTransitively,
org.codehaus.plexus.logging.Logger logger,
ArtifactFilter... additionalFilters) |
static Set<MavenProject> |
filterProjects(Set<MavenProject> projects,
List<String> includes,
List<String> excludes,
boolean actTransitively,
org.codehaus.plexus.logging.Logger logger) |
static ScopeFilter |
newScopeFilter(Collection<String> rootScopes)
Results in a filter including all rootScopes and their transitive scopes
|
static ScopeFilter |
newScopeFilter(String rootScope)
Results in a filter including the rootScope and its transitive scopes
|
static void |
reportFilteringStatistics(Collection<ArtifactFilter> filters,
org.codehaus.plexus.logging.Logger logger) |
public static Set<MavenProject> filterProjects(Set<MavenProject> projects, List<String> includes, List<String> excludes, boolean actTransitively, org.codehaus.plexus.logging.Logger logger)
public static void filterArtifacts(Set<Artifact> artifacts, List<String> includes, List<String> excludes, boolean strictFiltering, boolean actTransitively, org.codehaus.plexus.logging.Logger logger, ArtifactFilter... additionalFilters) throws InvalidAssemblerConfigurationException
public static void reportFilteringStatistics(Collection<ArtifactFilter> filters, org.codehaus.plexus.logging.Logger logger)
public static ScopeFilter newScopeFilter(String rootScope)
rootScope
- the root scopepublic static ScopeFilter newScopeFilter(Collection<String> rootScopes)
rootScopes
- all root scopesCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.