@Extension public class InstallerTranslator extends ToolLocationTranslator
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
InstallerTranslator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getToolHome(Node node,
ToolInstallation tool,
TaskListener log)
Called for each
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. |
allpublic String getToolHome(Node node, ToolInstallation tool, TaskListener log) throws IOException, InterruptedException
ToolLocationTranslatorToolInstallation.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.
getToolHome in class ToolLocationTranslatorIOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.