Package hudson.tasks
Class Ant
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.tasks.Ant
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
public class Ant extends Builder
Ant launcher.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ant.AntInstallation
Represents the Ant installation on the system.static class
Ant.AntInstaller
Automatic Ant installer from apache.org.static class
Ant.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Ant.AntInstallation
getAnt()
Gets the Ant to invoke, or null to invoke the default one.String
getAntOpts()
Gets the ANT_OPTS parameter, or null.String
getBuildFile()
Ant.DescriptorImpl
getDescriptor()
String
getProperties()
String
getTargets()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
protected static ArgumentListBuilder
toWindowsCommand(ArgumentListBuilder args)
Backward compatibility by checking the number of parameters-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Method Detail
-
getBuildFile
public String getBuildFile()
-
getProperties
public String getProperties()
-
getTargets
public String getTargets()
-
getAnt
public Ant.AntInstallation getAnt()
Gets the Ant to invoke, or null to invoke the default one.
-
getAntOpts
public String getAntOpts()
Gets the ANT_OPTS parameter, or null.
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
toWindowsCommand
protected static ArgumentListBuilder toWindowsCommand(ArgumentListBuilder args)
Backward compatibility by checking the number of parameters
-
getDescriptor
public Ant.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
-