Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for resolveJavaHomeOfExecutable (0.35 sec)

  1. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/JavaExecutableUtils.java

                throw new InvalidUserDataException("The configured executable is a directory (" + executableFile.getAbsolutePath() + ")");
            }
            return executableAbsoluteFile;
        }
    
        public static File resolveJavaHomeOfExecutable(String executable) {
            // Relying on the layout of the toolchain distribution: <JAVA HOME>/bin/<executable>
            return resolveExecutable(executable).getParentFile().getParentFile();
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/SpecificInstallationToolchainSpec.java

        public static SpecificInstallationToolchainSpec fromJavaExecutable(ObjectFactory objectFactory, String executable) {
            return objectFactory.newInstance(SpecificInstallationToolchainSpec.class, JavaExecutableUtils.resolveJavaHomeOfExecutable(executable));
        }
    
        @Override
        public Key toKey() {
            return new Key(javaHome);
        }
    
        @Override
        public boolean isConfigured() {
            return true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 18:07:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/compile/JavaCompile.java

                // because the custom executable can be set to the path of another tool in the toolchain such as a launcher (java).
                File customExecutableJavaHome = JavaExecutableUtils.resolveJavaHomeOfExecutable(customExecutablePath);
                JavaExecutableUtils.validateMatchingFiles(
                    customExecutableJavaHome, "Toolchain from `executable` property on `ForkOptions`",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:33:35 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top