public abstract class ToolLocationTranslator extends Object implements ExtensionPoint
ToolInstallationfor the given
This extension point is useful when there's a deterministic rule of where tools are installed.
One can program such a logic and contribute a
Compared to manually specifying
ToolLocationNodeProperty, duplicated configurations
can be avoided this way.
Entry point to the translation process is
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns all the registered
public abstract String getToolHome(Node node, ToolInstallation installation, TaskListener log) throws IOException, InterruptedException
ToolInstallation.translateFor(Node, TaskListener)invocations (which normally means it's invoked for each
NodeSpecific.forNode(Node, TaskListener)) to translate the tool location into the node specific location.
If this implementation is capable of determining the location, return the path in the absolute file name.
(This method doesn't return
File so that it can handle path names of a different OS.
Otherwise return null to let other
ToolLocationTranslators a chance to do translations
on their own.
Copyright © 2004–2017. All rights reserved.