Package org.apache.maven.ant.tasks
Class AttachArtifactTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.maven.ant.tasks.AttachArtifactTask
- All Implemented Interfaces:
Cloneable
public class AttachArtifactTask
extends org.apache.tools.ant.Task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe classifier of the artifact to attachprivate FileThe file to attach.private StringThe refId of the Maven project helper component.private StringThe refId of the Maven project.private StringThe type of the artifact to attach.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()getFile()getType()voidsetClassifier(String classifier) voidvoidsetMavenProjectRefId(String mavenProjectRefId) voidMethods 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
-
Field Details
-
mavenProjectRefId
The refId of the Maven project. -
mavenProjectHelperRefId
The refId of the Maven project helper component. -
file
The file to attach. -
classifier
The classifier of the artifact to attach -
type
The type of the artifact to attach. Defaults to file extension.
-
-
Constructor Details
-
AttachArtifactTask
public AttachArtifactTask()
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classorg.apache.tools.ant.Task
-
getFile
- Returns:
file
-
setFile
- Parameters:
file-file
-
getMavenProjectRefId
- Returns:
mavenProjectRefId
-
setMavenProjectRefId
- Parameters:
mavenProjectRefId-mavenProjectRefId
-
getClassifier
- Returns:
classifier
-
setClassifier
- Parameters:
classifier-classifier
-
getType
- Returns:
type
-
setType
- Parameters:
type-type
-