Class DependencyFilesetsTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.maven.ant.tasks.DependencyFilesetsTask
All Implemented Interfaces:
Cloneable

public class DependencyFilesetsTask extends org.apache.tools.ant.Task
Ant task which create a fileset for each dependency in a Maven project, and a fileset containing all selected dependencies.
  • Field Details

  • Constructor Details

    • DependencyFilesetsTask

      public DependencyFilesetsTask()
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class org.apache.tools.ant.Task
    • getMavenProjectId

      public String getMavenProjectId()
      Returns:
      mavenProjectId
    • setMavenProjectId

      public void setMavenProjectId(String mavenProjectId)
      Parameters:
      mavenProjectId - mavenProjectId
    • getPrefix

      public String getPrefix()
      Returns:
      prefix Prefix to be added to each of the dependency filesets
    • setPrefix

      public void setPrefix(String prefix)
      Prefix to be added to each of the dependency filesets. Default is empty string.
      Parameters:
      prefix - String to prepend to all fileset IDs.
    • getTypes

      public String getTypes()
      Returns:
      types Comma separated list of artifact types to include.
    • setTypes

      public void setTypes(String types)
      Parameters:
      types - Comma separated list of artifact types to include.
    • getScopes

      public String getScopes()
      Returns:
      scopes Comma separated list of artifact scopes to include.
    • setScopes

      public void setScopes(String scopes)
      Parameters:
      scopes - Comma separated list of artifact scopes to include.
    • getProjectDependenciesId

      public String getProjectDependenciesId()
      Returns:
      RefId for the fileset containing all project dependencies - default maven.project.dependencies
    • setProjectDependenciesId

      public void setProjectDependenciesId(String projectDependenciesId)
      Parameters:
      projectDependenciesId - RefId for the fileset containing all project dependencies
    • filterArtifacts

      public Set<org.apache.maven.artifact.Artifact> filterArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
      Filter a set of artifacts using the scopes and type filters.
      Parameters:
      artifacts - Artifact set.
      Returns:
      The set of filtered artifacts.