Package org.apache.maven.ant.tasks
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.
- Author:
- pgier
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()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.getTypes()voidsetMavenProjectId(String mavenProjectId) voidPrefix to be added to each of the dependency filesets.voidsetProjectDependenciesId(String projectDependenciesId) voidvoidMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
DependencyFilesetsTask
public DependencyFilesetsTask()
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classorg.apache.tools.ant.Task
-
getMavenProjectId
- Returns:
mavenProjectId
-
setMavenProjectId
- Parameters:
mavenProjectId-mavenProjectId
-
getPrefix
- Returns:
- prefix Prefix to be added to each of the dependency filesets
-
setPrefix
Prefix to be added to each of the dependency filesets. Default is empty string.- Parameters:
prefix- String to prepend to all fileset IDs.
-
getTypes
- Returns:
- types Comma separated list of artifact types to include.
-
setTypes
- Parameters:
types- Comma separated list of artifact types to include.
-
getScopes
- Returns:
- scopes Comma separated list of artifact scopes to include.
-
setScopes
- Parameters:
scopes- Comma separated list of artifact scopes to include.
-
getProjectDependenciesId
- Returns:
- RefId for the fileset containing all project dependencies - default maven.project.dependencies
-
setProjectDependenciesId
- 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-Artifactset.- Returns:
- The set of filtered artifacts.
-