hudson.plugins.antexec
Class AntExec
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.antexec.AntExec
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep
public class AntExec
- extends hudson.tasks.Builder
Invokes the Apache Ant script entered on the hudson build configuration.
- Author:
- Milos Svasek
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.tasks.Builder |
all, getRequiredMonitorService, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, getProjectActions, prebuild |
buildXml
protected static final String buildXml
- See Also:
- Constant Field Values
AntExec
@DataBoundConstructor
public AntExec(String scriptSource,
String extendedScriptSource,
String scriptName,
String properties,
String antName,
String antOpts,
Boolean verbose,
Boolean emacs)
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
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 verbose
perform
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
getDescriptor
public AntExec.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptor in class hudson.tasks.Builder
Copyright © 2004-2012. All Rights Reserved.