Package hudson.plugins.sshslaves
Class DefaultJavaProvider
java.lang.Object
hudson.plugins.sshslaves.JavaProvider
hudson.plugins.sshslaves.DefaultJavaProvider
- All Implemented Interfaces:
ExtensionPoint
Deprecated.
Class to try to guess where is java.
This is the list of places where it will try to find java:
- Agent working directory - WORKING_DIRECTORY/jdk/bin/java
- JAVA_HOME environment variable - JAVA_HOME/bin/java
- JDK tools configured on Jenkins - JDK_TOOLS_LOCATIONS/bin/java
- PATH
- "/usr/bin/java"
- "/usr/java/default/bin/java"
- "/usr/java/latest/bin/java"
- "/usr/local/bin/java"
- "/usr/local/java/bin/java
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJavas
(SlaveComputer computer, TaskListener listener, com.trilead.ssh2.Connection connection) Deprecated.Returns the list of possible places where java executable might exist.Methods inherited from class hudson.plugins.sshslaves.JavaProvider
all, getJavas, getMinJavaLevel
-
Field Details
-
JAVA_HOME
Deprecated.- See Also:
-
BIN_JAVA
Deprecated.- See Also:
-
JDK_BIN_JAVA
Deprecated.- See Also:
-
-
Constructor Details
-
DefaultJavaProvider
public DefaultJavaProvider()Deprecated.
-
-
Method Details
-
getJavas
public List<String> getJavas(SlaveComputer computer, TaskListener listener, com.trilead.ssh2.Connection connection) Deprecated.Description copied from class:JavaProvider
Returns the list of possible places where java executable might exist.- Overrides:
getJavas
in classJavaProvider
- Returns:
- Can be empty but never null. Absolute path to the possible locations of Java.
-