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:
java.lang.Cloneable
public class AttachArtifactTask extends org.apache.tools.ant.Task
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringclassifierThe classifier of the artifact to attachprivate java.io.FilefileThe file to attach.private java.lang.StringmavenProjectHelperRefIdThe refId of the Maven project helper component.private java.lang.StringmavenProjectRefIdThe refId of the Maven project.private java.lang.StringtypeThe type of the artifact to attach.
-
Constructor Summary
Constructors Constructor Description AttachArtifactTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()java.lang.StringgetClassifier()java.io.FilegetFile()java.lang.StringgetMavenProjectRefId()java.lang.StringgetType()voidsetClassifier(java.lang.String classifier)voidsetFile(java.io.File file)voidsetMavenProjectRefId(java.lang.String mavenProjectRefId)voidsetType(java.lang.String type)-
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
-
-
-
-
Field Detail
-
mavenProjectRefId
private java.lang.String mavenProjectRefId
The refId of the Maven project.
-
mavenProjectHelperRefId
private java.lang.String mavenProjectHelperRefId
The refId of the Maven project helper component.
-
file
private java.io.File file
The file to attach.
-
classifier
private java.lang.String classifier
The classifier of the artifact to attach
-
type
private java.lang.String type
The type of the artifact to attach. Defaults to file extension.
-
-
Method Detail
-
execute
public void execute()
- Overrides:
executein classorg.apache.tools.ant.Task
-
getFile
public java.io.File getFile()
- Returns:
file
-
setFile
public void setFile(java.io.File file)
- Parameters:
file-file
-
getMavenProjectRefId
public java.lang.String getMavenProjectRefId()
- Returns:
mavenProjectRefId
-
setMavenProjectRefId
public void setMavenProjectRefId(java.lang.String mavenProjectRefId)
- Parameters:
mavenProjectRefId-mavenProjectRefId
-
getClassifier
public java.lang.String getClassifier()
- Returns:
classifier
-
setClassifier
public void setClassifier(java.lang.String classifier)
- Parameters:
classifier-classifier
-
getType
public java.lang.String getType()
- Returns:
type
-
setType
public void setType(java.lang.String type)
- Parameters:
type-type
-
-