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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorsConstructorDescriptionAntInstallation
(String name, String home) Deprecated.AntInstallation
(String name, String home, List<? extends ToolProperty<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvVars
(EnvVars env) forEnvironment
(EnvVars environment) forNode
(Node node, TaskListener log) Deprecated.as of 1.307.getExecutable
(Launcher launcher) Gets the executable path of this Ant on the given target system.boolean
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 Details
-
AntInstallation
@DataBoundConstructor public AntInstallation(String name, String home, List<? extends ToolProperty<?>> properties) -
AntInstallation
Deprecated.as of 1.308 UseAntInstallation(String, String, List)
-
-
Method Details
-
getAntHome
Deprecated.as of 1.307. UseToolInstallation.getHome()
.install directory. -
buildEnvVars
- Overrides:
buildEnvVars
in classToolInstallation
-
getExecutable
Gets the executable path of this Ant on the given target system.- Throws:
IOException
InterruptedException
-
getExists
Returns true if the executable exists.- Throws:
IOException
InterruptedException
-
forEnvironment
- 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
-
AntInstallation(String, String, List)