Package hudson.plugins.sshslaves
Class DefaultJavaProvider
- java.lang.Object
-
- hudson.plugins.sshslaves.JavaProvider
-
- hudson.plugins.sshslaves.DefaultJavaProvider
-
- All Implemented Interfaces:
ExtensionPoint
@Extension @Deprecated public class DefaultJavaProvider extends JavaProvider
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
-
-
Constructor Summary
Constructors Constructor Description DefaultJavaProvider()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>
getJavas(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 Detail
-
JAVA_HOME
public static final String JAVA_HOME
Deprecated.- See Also:
- Constant Field Values
-
BIN_JAVA
public static final String BIN_JAVA
Deprecated.- See Also:
- Constant Field Values
-
JDK_BIN_JAVA
public static final String JDK_BIN_JAVA
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-