Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getBestJre (0.15 sec)

  1. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

        @Requires([
            UnitTestPreconditions.Jdk8OrEarlier,
            UnitTestPreconditions.JdkOracle
        ])
        def "handles -bootclasspath being specified"() {
            def jre = AvailableJavaHomes.getBestJre()
            def bootClasspath = TextUtil.escapeString(jre.absolutePath) + "/lib/rt.jar"
            goodCode()
            buildFile << """
                tasks.withType(JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AvailableJavaHomes.java

         *
         * @return The JRE home directory, or null if not found
         */
        public static File getBestJre() {
            Jvm jvm = Jvm.current();
            File jre = jvm.getStandaloneJre();
            if (jre != null) {
                return jre;
            }
            jre = jvm.getEmbeddedJre();
            if (jre != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

        @Issue("https://github.com/gradle/gradle/issues/19817")
        def "shows deprecation if bootclasspath is provided as a path instead of a single file"() {
            def jre = AvailableJavaHomes.getBestJre()
            def bootClasspath = TextUtil.escapeString(jre.absolutePath) + "/lib/rt.jar${File.pathSeparator}someotherpath"
            buildFile << """
                plugins {
                    id 'java'
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

        @Issue("https://github.com/gradle/gradle/issues/19817")
        def "fails if bootclasspath is provided as a path instead of a single file"() {
            def jre = AvailableJavaHomes.getBestJre()
            def bootClasspath = TextUtil.escapeString(jre.absolutePath) + "/lib/rt.jar${File.pathSeparator}someotherpath"
            buildFile << """
                plugins {
                    id 'java'
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top