This commit is contained in:
nik
2015-02-10 16:29:31 +03:00
parent c01613ae0f
commit daf711a0e8
@@ -30,6 +30,13 @@ public abstract class JdkVersionDetector {
return JpsServiceManager.getInstance().getService(JdkVersionDetector.class);
}
/**
* Returns java version for JDK located at {@code homePath} in format like<br>
* <tt>java version "1.8.0_40"</tt><br>
* by running '<tt>java -version</tt>' command
* @param homePath path to JDK home directory
* @return version string of {@code null} if version cannot be determined
*/
@Nullable
public abstract String detectJdkVersion(String homePath);