public class JdkToolService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_ENV_JDK |
static String |
JAVA_VERSION_COMMAND_VERSION_LINE_REGEX |
static String |
SYSTEM_JDK |
| Constructor and Description |
|---|
JdkToolService() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkJdkVersion(hudson.model.Node node,
hudson.model.JDK jdk,
PrintStream logger) |
static hudson.model.JDK |
getJDKByName(hudson.model.Node node,
String name) |
static List<hudson.model.JDK> |
getJdkToolAvailables() |
static boolean |
isJDKValid(hudson.model.Node node,
hudson.model.JDK jdk)
Checks if JDK exists on the given node.
|
public static final String EXTERNAL_ENV_JDK
public static final String SYSTEM_JDK
public static final String JAVA_VERSION_COMMAND_VERSION_LINE_REGEX
public static List<hudson.model.JDK> getJdkToolAvailables() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static hudson.model.JDK getJDKByName(hudson.model.Node node,
String name)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static boolean checkJdkVersion(hudson.model.Node node,
hudson.model.JDK jdk,
PrintStream logger)
public static boolean isJDKValid(hudson.model.Node node,
hudson.model.JDK jdk)
If it's not, then the user must specify a configured JDK, so this is often useful for form field validation.
Copyright © 2016–2017. All rights reserved.