Package org.gradle.internal.jvm

Examples of org.gradle.internal.jvm.Jvm


     *
     * @return null if not found.
     */
    @Nullable
    public static JavaInfo getDifferentJdk() {
        Jvm jvm = Jvm.current();
        for (JvmInstallation candidate : getJvms()) {
            if (candidate.getJavaHome().equals(jvm.getJavaHome())) {
                continue;
            }

            // Currently tests implicitly assume a JDK
            if (!candidate.isJdk()) {
View Full Code Here


     *
     * @return null if not found.
     */
    @Nullable
    public static JavaInfo getDifferentVersion() {
        Jvm jvm = Jvm.current();
        for (JvmInstallation candidate : getJvms()) {
            if (candidate.getJavaVersion().equals(jvm.getJavaVersion())) {
                continue;
            }
            // Currently tests implicitly assume a JDK
            if (!candidate.isJdk()) {
                continue;
View Full Code Here

     * Locates a JRE installation for the current JVM. Prefers a stand-alone JRE installation over one that is part of a JDK install.
     *
     * @return The JRE home directory, or null if not found
     */
    public static File getBestJre() {
        Jvm jvm = Jvm.current();
        Jre jre = jvm.getStandaloneJre();
        if (jre != null) {
            return jre.getHomeDir();
        }
        jre = jvm.getJre();
        if (jre != null) {
            return jre.getHomeDir();
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.gradle.internal.jvm.Jvm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.