/** * Returns the version of the VM at the given location, with the given * executable. * * @param javaHome the Java home folder * @param javaExecutable the Java executable file * @return String */ protected String getVMVersion(File javaHome, File javaExecutable) { LibraryInfo info = getLibraryInfo(javaHome, javaExecutable); return info.getVersion(); }
/** * Returns the version of the VM at the given location, with the given * executable. * * @param javaHome the Java home folder * @param javaExecutable the Java executable file * @return String */ protected String getVMVersion(File javaHome, File javaExecutable) { LibraryInfo info = getLibraryInfo(javaHome, javaExecutable); return info.getVersion(); }
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
libInfo = getDefaultLibraryInfo(installLocation); } else { libInfo = getLibraryInfo(installLocation, javaExecutable);
libInfo = getDefaultLibraryInfo(installLocation); } else { libInfo = getLibraryInfo(installLocation, javaExecutable);