hudson.tools
Class ToolLocationNodeProperty

java.lang.Object
  extended by hudson.slaves.NodeProperty<Node>
      extended by hudson.tools.ToolLocationNodeProperty
All Implemented Interfaces:
ExtensionPoint, Describable<NodeProperty<?>>, ReconfigurableDescribable<NodeProperty<?>>

public class ToolLocationNodeProperty
extends NodeProperty<Node>

NodeProperty that allows users to specify different locations for ToolInstallations.

Since:
1.286

Nested Class Summary
static class ToolLocationNodeProperty.DescriptorImpl
           
static class ToolLocationNodeProperty.ToolLocation
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.NodeProperty
node
 
Constructor Summary
ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations)
           
ToolLocationNodeProperty(ToolLocationNodeProperty.ToolLocation... locations)
           
 
Method Summary
 String getHome(ToolInstallation installation)
           
 List<ToolLocationNodeProperty.ToolLocation> getLocations()
           
static String getToolHome(Node node, ToolInstallation installation, TaskListener log)
          Deprecated. since 2009-04-09. Use ToolInstallation.translateFor(Node,TaskListener)
 
Methods inherited from class hudson.slaves.NodeProperty
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, setNode, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolLocationNodeProperty

@DataBoundConstructor
public ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations)

ToolLocationNodeProperty

public ToolLocationNodeProperty(ToolLocationNodeProperty.ToolLocation... locations)
Method Detail

getLocations

public List<ToolLocationNodeProperty.ToolLocation> getLocations()

getHome

public String getHome(ToolInstallation installation)

getToolHome

public static String getToolHome(Node node,
                                 ToolInstallation installation,
                                 TaskListener log)
                          throws IOException,
                                 InterruptedException
Deprecated. since 2009-04-09. Use ToolInstallation.translateFor(Node,TaskListener)

Checks if the location of the tool is overridden for the given node, and if so, return the node-specific home directory. Otherwise return installation.getHome()

This is the core logic behind NodeSpecific#forNode(Node) for ToolInstallation.

Returns:
never null.
Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.