Class JavaVersionChecker


  • @Deprecated
    public class JavaVersionChecker
    extends Object
    Deprecated.
    class to check if the version of java installed on the agent is a supported one.
    • Constructor Detail

      • JavaVersionChecker

        public JavaVersionChecker​(SlaveComputer computer,
                                  TaskListener listener,
                                  String jvmOptions,
                                  com.trilead.ssh2.Connection connection)
        Deprecated.
    • Method Detail

      • 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" in r, determine if this version of Java is supported.
        Parameters:
        logger - where to log the output
        javaCommand - the command executed, used for logging
        r - the output of "java -version"
        output - copy the data from r into this output buffer
        Throws:
        IOException