org.apache.maven.plugin.dependency.utils.filters
Class ScopeFilter
java.lang.Object
org.apache.maven.plugin.dependency.utils.filters.AbstractArtifactsFilter
org.apache.maven.plugin.dependency.utils.filters.ScopeFilter
- All Implemented Interfaces:
- ArtifactsFilter
public class ScopeFilter
- extends AbstractArtifactsFilter
- Version:
- $Id: ScopeFilter.java 552528 2007-07-02 16:12:47Z markh $
- Author:
- Brian Fox
Constructor Summary |
ScopeFilter(java.lang.String includeScope,
java.lang.String excludeScope)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopeFilter
public ScopeFilter(java.lang.String includeScope,
java.lang.String excludeScope)
filter
public java.util.Set filter(java.util.Set artifacts,
org.apache.maven.plugin.logging.Log log)
throws org.apache.maven.plugin.MojoExecutionException
- This function determines if filtering needs to be performed. Excludes are
ignored if Includes are used.
- Parameters:
dependencies
- the set of dependencies to filter.
- Returns:
- a Set of filtered dependencies.
- Throws:
org.apache.maven.plugin.MojoExecutionException
getIncludeScope
public java.lang.String getIncludeScope()
- Returns:
- Returns the includeScope.
setIncludeScope
public void setIncludeScope(java.lang.String scope)
- Parameters:
includeScope
- The includeScope to set.
getExcludeScope
public java.lang.String getExcludeScope()
- Returns:
- Returns the excludeScope.
setExcludeScope
public void setExcludeScope(java.lang.String excludeScope)
- Parameters:
excludeScope
- The excludeScope to set.
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.