Class ScopeFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      ScopeFilter​(java.lang.String includeScope, java.lang.String excludeScope)
      Constructor for ScopeFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<org.apache.maven.artifact.Artifact> filter​(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
      filter.
      java.lang.String getExcludeScope()
      Getter for the field excludeScope.
      java.lang.String getIncludeScope()
      Getter for the field includeScope.
      void setExcludeScope​(java.lang.String scope)
      Setter for the field excludeScope.
      void setIncludeScope​(java.lang.String scope)
      Setter for the field includeScope.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScopeFilter

        public ScopeFilter​(java.lang.String includeScope,
                           java.lang.String excludeScope)

        Constructor for ScopeFilter.

        Parameters:
        includeScope - the scope to be included.
        excludeScope - the scope to be excluded.
    • Method Detail

      • filter

        public java.util.Set<org.apache.maven.artifact.Artifact> filter​(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
                                                                 throws ArtifactFilterException

        filter.

        This function determines if filtering needs to be performed. Excludes are ignored if Includes are used.
        Parameters:
        artifacts - Artifact
        Returns:
        Set of artifacts.
        Throws:
        ArtifactFilterException - in case of a failure.
      • getIncludeScope

        public java.lang.String getIncludeScope()

        Getter for the field includeScope.

        Returns:
        Returns the includeScope.
      • setIncludeScope

        public void setIncludeScope​(java.lang.String scope)

        Setter for the field includeScope.

        Parameters:
        scope - The includeScope to set.
      • getExcludeScope

        public java.lang.String getExcludeScope()

        Getter for the field excludeScope.

        Returns:
        Returns the excludeScope.
      • setExcludeScope

        public void setExcludeScope​(java.lang.String scope)

        Setter for the field excludeScope.

        Parameters:
        scope - The excludeScope to set.