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

    Fields
    Modifier and Type
    Field
    Description
    private String
    The classifier of the artifact to attach
    private 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
     
    void
    setClassifier(String classifier)
     
    void
    setFile(File file)
     
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mavenProjectRefId

      private String mavenProjectRefId
      The refId of the Maven project.
    • mavenProjectHelperRefId

      private String mavenProjectHelperRefId
      The refId of the Maven project helper component.
    • file

      private File file
      The file to attach.
    • classifier

      private String classifier
      The classifier of the artifact to attach
    • type

      private String 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 class org.apache.tools.ant.Task
    • getFile

      public File getFile()
      Returns:
      file
    • setFile

      public void setFile(File file)
      Parameters:
      file - file
    • getMavenProjectRefId

      public String getMavenProjectRefId()
      Returns:
      mavenProjectRefId
    • setMavenProjectRefId

      public void setMavenProjectRefId(String mavenProjectRefId)
      Parameters:
      mavenProjectRefId - mavenProjectRefId
    • getClassifier

      public String getClassifier()
      Returns:
      classifier
    • setClassifier

      public void setClassifier(String classifier)
      Parameters:
      classifier - classifier
    • getType

      public String getType()
      Returns:
      type
    • setType

      public void setType(String type)
      Parameters:
      type - type