Package hudson.plugins.antexec
Class AntExec
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.antexec.AntExec
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
Invokes the Apache Ant script entered on the hudson build configuration.
- Author:
- Milos Svasek
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns content of text field with java/ant options from job configuration screen.getEmacs()Returns checkbox boolean from job configuration screenReturns content of text area with script source from job configuration screenReturns checkbox boolean from job configuration screenReturns checkbox boolean from job configuration screenReturns content of text field with properties from job configuration screenReturns content of text area with script name from job configuration screenReturns content of text area with script source from job configuration screenReturns checkbox boolean from job configuration screenbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
buildXml
- See Also:
-
-
Constructor Details
-
AntExec
-
-
Method Details
-
getScriptSource
Returns content of text area with script source from job configuration screen- Returns:
- String scriptSource
-
getExtendedScriptSource
Returns content of text area with script source from job configuration screen- Returns:
- String extendedScriptSource
-
getScriptName
Returns content of text area with script name from job configuration screen- Returns:
- String scriptName
-
getProperties
Returns content of text field with properties from job configuration screen- Returns:
- String properties
-
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
Returns checkbox boolean from job configuration screen- Returns:
- Boolean keepBuildfile
-
getVerbose
Returns checkbox boolean from job configuration screen- Returns:
- Boolean verbose
-
getEmacs
Returns checkbox boolean from job configuration screen- Returns:
- Boolean emacs
-
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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
IOExceptionInterruptedException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-