public class JavaVersionChecker extends Object
| Constructor and Description |
|---|
JavaVersionChecker(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener,
String jvmOptions,
com.trilead.ssh2.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkJavaVersion(PrintStream logger,
String javaCommand,
BufferedReader r,
StringWriter output)
Given the output of "java -version" in
r, determine if this
version of Java is supported. |
protected String |
resolveJava()
return javaPath if specified in the configuration.
|
public JavaVersionChecker(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener,
String jvmOptions,
com.trilead.ssh2.Connection connection)
protected String resolveJava() throws InterruptedException, IOException
InterruptedExceptionIOException@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String checkJavaVersion(PrintStream logger, String javaCommand, BufferedReader r, StringWriter output) throws IOException
r, determine if this
version of Java is supported.logger - where to log the outputjavaCommand - the command executed, used for loggingr - the output of "java -version"output - copy the data from r into this output bufferIOExceptionCopyright © 2016–2018. All rights reserved.