Package hudson.plugins.sshslaves
Class JavaVersionChecker
java.lang.Object
hudson.plugins.sshslaves.JavaVersionChecker
Deprecated.
class to check if the version of java installed on the agent is a supported one.
-
Constructor Summary
ConstructorDescriptionJavaVersionChecker
(SlaveComputer computer, TaskListener listener, String jvmOptions, com.trilead.ssh2.Connection connection) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncheckJavaVersion
(PrintStream logger, String javaCommand, BufferedReader r, StringWriter output) Deprecated.Given the output of "java -version" inr
, determine if this version of Java is supported.protected String
Deprecated.return javaPath if specified in the configuration.
-
Constructor Details
-
JavaVersionChecker
public JavaVersionChecker(SlaveComputer computer, TaskListener listener, String jvmOptions, com.trilead.ssh2.Connection connection) Deprecated.
-
-
Method Details
-
resolveJava
Deprecated.return javaPath if specified in the configuration. Finds local Java.- Throws:
InterruptedException
IOException
-
checkJavaVersion
@CheckForNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String checkJavaVersion(PrintStream logger, String javaCommand, BufferedReader r, StringWriter output) throws IOException Deprecated.Given the output of "java -version" inr
, determine if this version of Java is supported.- Parameters:
logger
- where to log the outputjavaCommand
- the command executed, used for loggingr
- the output of "java -version"output
- copy the data fromr
into this output buffer- Throws:
IOException
-