Package hudson.tasks
Class Ant.AntInstallation
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ToolInstallation>
-
- hudson.tools.ToolInstallation
-
- hudson.tasks.Ant.AntInstallation
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<Ant.AntInstallation>
,NodeSpecific<Ant.AntInstallation>
,Serializable
- Enclosing class:
- Ant
public static final class Ant.AntInstallation extends ToolInstallation implements EnvironmentSpecific<Ant.AntInstallation>, NodeSpecific<Ant.AntInstallation>
Represents the Ant installation on the system.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ant.AntInstallation.ConverterImpl
static class
Ant.AntInstallation.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AntInstallation(String name, String home)
Deprecated.as of 1.308 UseAntInstallation(String, String, List)
AntInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
buildEnvVars(EnvVars env)
Ant.AntInstallation
forEnvironment(EnvVars environment)
Ant.AntInstallation
forNode(Node node, TaskListener log)
String
getAntHome()
Deprecated.as of 1.307.String
getExecutable(Launcher launcher)
Gets the executable path of this Ant on the given target system.boolean
getExists()
Returns true if the executable exists.-
Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
AntInstallation
@DataBoundConstructor public AntInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
AntInstallation
@Deprecated public AntInstallation(String name, String home)
Deprecated.as of 1.308 UseAntInstallation(String, String, List)
-
-
Method Detail
-
getAntHome
public String getAntHome()
Deprecated.as of 1.307. UseToolInstallation.getHome()
.install directory.
-
buildEnvVars
public void buildEnvVars(EnvVars env)
- Overrides:
buildEnvVars
in classToolInstallation
-
getExecutable
public String getExecutable(Launcher launcher) throws IOException, InterruptedException
Gets the executable path of this Ant on the given target system.- Throws:
IOException
InterruptedException
-
getExists
public boolean getExists() throws IOException, InterruptedException
Returns true if the executable exists.- Throws:
IOException
InterruptedException
-
forEnvironment
public Ant.AntInstallation forEnvironment(EnvVars environment)
- Specified by:
forEnvironment
in interfaceEnvironmentSpecific<Ant.AntInstallation>
-
forNode
public Ant.AntInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException
- Specified by:
forNode
in interfaceNodeSpecific<Ant.AntInstallation>
- Throws:
IOException
InterruptedException
-
-