Class AbstractToolInstallation
java.lang.Object
hudson.model.AbstractDescribableImpl<ToolInstallation>
hudson.tools.ToolInstallation
de.tracetronic.jenkins.plugins.ecutest.tool.installation.AbstractToolInstallation
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<AbstractToolInstallation>
,NodeSpecific<AbstractToolInstallation>
,Serializable
- Direct Known Subclasses:
ETInstallation
public abstract class AbstractToolInstallation
extends ToolInstallation
implements EnvironmentSpecific<AbstractToolInstallation>, NodeSpecific<AbstractToolInstallation>
Represents a base tool installation specified by name and home directory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractToolInstallation
(AbstractToolInstallation source, String home, List<? extends ToolProperty<?>> properties) Instantiates a newAbstractToolInstallation
.AbstractToolInstallation
(String name, String home, List<? extends ToolProperty<?>> properties) Instantiates a newAbstractToolInstallation
. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getExecutable
(Launcher launcher) Gets the executable file path of the tool on the given target system.Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hudson.model.EnvironmentSpecific
forEnvironment
Methods inherited from interface hudson.slaves.NodeSpecific
forNode
-
Constructor Details
-
AbstractToolInstallation
public AbstractToolInstallation(String name, String home, List<? extends ToolProperty<?>> properties) Instantiates a newAbstractToolInstallation
.- Parameters:
name
- the name of the toolhome
- the home directory of the toolproperties
- the tool properties
-
AbstractToolInstallation
public AbstractToolInstallation(AbstractToolInstallation source, String home, List<? extends ToolProperty<?>> properties) Instantiates a newAbstractToolInstallation
.- Parameters:
source
- the source to install the toolhome
- the home directory of the toolproperties
- the tool properties
-
-
Method Details
-
getExecutable
Gets the executable file path of the tool on the given target system.- Parameters:
launcher
- the launcher- Returns:
- the executable file path or
null
if home directory is not set or file does not exist - Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completion
-