public class CmakeTool extends hudson.tools.ToolInstallation implements hudson.slaves.NodeSpecific<CmakeTool>, hudson.model.EnvironmentSpecific<CmakeTool>
Modifier and Type | Class and Description |
---|---|
static class |
CmakeTool.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT
Tool name of the default tool (usually found on the executable search
path).
|
Constructor and Description |
---|
CmakeTool(String name,
String home,
List<? extends hudson.tools.ToolProperty<?>> properties)
Constructor for CmakeTool.
|
Modifier and Type | Method and Description |
---|---|
void |
buildEnvVars(hudson.EnvVars env)
Overwritten to add the path to cmake`s bin directory, if tool was
downloaded.
|
CmakeTool |
forEnvironment(hudson.EnvVars environment) |
CmakeTool |
forNode(hudson.model.Node node,
hudson.model.TaskListener log) |
String |
getAbsoluteCommand(hudson.model.Node node,
String basename)
Gets the absolute file system path on the specified node with the
basename appended.
|
static void |
onLoaded()
Creates a default tool installation if needed.
|
public static final transient String DEFAULT
@DataBoundConstructor public CmakeTool(String name, String home, List<? extends hudson.tools.ToolProperty<?>> properties)
name
- Tool name (for example, "cmake2.6.4" or "cmake2.8.12")home
- the parent directory of the cmake
tool from the
installation. This is used to determine the file system path
of any of the tools of the cmake suite (cmake/cpack/ctest).properties
- List
of properties for this toolpublic String getAbsoluteCommand(hudson.model.Node node, String basename)
forNode(Node, TaskListener)
was called.node
- Node that this tool is used in.basename
- the basename of the command to run (cmake, cpack or ctest).ToolInstallation.getHome()
returns nullpublic void buildEnvVars(hudson.EnvVars env)
buildEnvVars
in class hudson.tools.ToolInstallation
public CmakeTool forNode(hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
forNode
in interface hudson.slaves.NodeSpecific<CmakeTool>
IOException
InterruptedException
public CmakeTool forEnvironment(hudson.EnvVars environment)
forEnvironment
in interface hudson.model.EnvironmentSpecific<CmakeTool>
@Initializer(after=EXTENSIONS_AUGMENTED) public static void onLoaded()
Copyright © 2016–2021. All rights reserved.