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 String
The classifier of the artifact to attachprivate File
The file to attach.private String
The refId of the Maven project helper component.private String
The refId of the Maven project.private String
The type of the artifact to attach.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getFile()
getType()
void
setClassifier
(String classifier) void
void
setMavenProjectRefId
(String mavenProjectRefId) void
Methods 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, setTaskType
Methods 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:
execute
in 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
-