Class AntExec

All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep

public class AntExec extends Builder
Invokes the Apache Ant script entered on the hudson build configuration.
Author:
Milos Svasek
  • Field Details

  • Constructor Details

  • Method Details

    • getScriptSource

      public String getScriptSource()
      Returns content of text area with script source from job configuration screen
      Returns:
      String scriptSource
    • getExtendedScriptSource

      public String getExtendedScriptSource()
      Returns content of text area with script source from job configuration screen
      Returns:
      String extendedScriptSource
    • getScriptName

      public String getScriptName()
      Returns content of text area with script name from job configuration screen
      Returns:
      String scriptName
    • getProperties

      public String getProperties()
      Returns content of text field with properties from job configuration screen
      Returns:
      String properties
    • getAntOpts

      public String getAntOpts()
      Returns content of text field with java/ant options from job configuration screen. It will be used for ANT_OPTS environment variable
      Returns:
      String antOpts
    • getKeepBuildfile

      public Boolean getKeepBuildfile()
      Returns checkbox boolean from job configuration screen
      Returns:
      Boolean keepBuildfile
    • getVerbose

      public Boolean getVerbose()
      Returns checkbox boolean from job configuration screen
      Returns:
      Boolean verbose
    • getEmacs

      public Boolean getEmacs()
      Returns checkbox boolean from job configuration screen
      Returns:
      Boolean emacs
    • getNoAntcontrib

      public Boolean getNoAntcontrib()
      Returns checkbox boolean from job configuration screen
      Returns:
      Boolean noAntcontrib
    • perform

      public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
      Specified by:
      perform in interface BuildStep
      Overrides:
      perform in class BuildStepCompatibilityLayer
      Throws:
      IOException
      InterruptedException
    • getDescriptor

      public AntExec.DescriptorImpl getDescriptor()
      Specified by:
      getDescriptor in interface Describable<Builder>
      Overrides:
      getDescriptor in class Builder