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 classstatic classNested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverterNested 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 TypeMethodDescriptionvoidbuildEnvVars(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.booleanReturns true if the executable exists.Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplaceMethods 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:
buildEnvVarsin classToolInstallation
-
getExecutable
Gets the executable path of this Ant on the given target system.- Throws:
IOExceptionInterruptedException
-
getExists
Returns true if the executable exists.- Throws:
IOExceptionInterruptedException
-
forEnvironment
- Specified by:
forEnvironmentin interfaceEnvironmentSpecific<Ant.AntInstallation>
-
forNode
public Ant.AntInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
forNodein interfaceNodeSpecific<Ant.AntInstallation>- Throws:
IOExceptionInterruptedException
-
AntInstallation(String, String, List)