Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for captureJavaHome (0.15 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonToolchainCoexistWithCurrentOptionsIntegrationTest.groovy

            given:
            def otherJvm = AvailableJavaHomes.differentVersion
            writeJvmCriteria(otherJvm)
            captureJavaHome()
            executer.withArgument("-Porg.gradle.java.installations.auto-detect=false")
    
            expect:
            withInstallations(otherJvm).succeeds("help")
            assertDaemonUsedJvm(otherJvm)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonToolchainIntegrationTest.groovy

        }
    
        def "Given daemon toolchain version When executing any task Then daemon jvm was set up with expected configuration"() {
            given:
            writeJvmCriteria(Jvm.current())
            captureJavaHome()
    
            expect:
            succeeds("help")
            assertDaemonUsedJvm(Jvm.current())
            outputContains("Daemon JVM discovery is an incubating feature.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

            def otherJdk = AvailableJavaHomes.differentVersion
            writeJvmCriteria(otherJdk)
            captureJavaHome()
    
            when:
            withInstallations(otherJdk).succeeds()
    
            then:
            assertDaemonUsedJvm(otherJdk)
            wasForked()
            daemons.daemon.stops()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-configuration/src/testFixtures/groovy/org/gradle/internal/buildconfiguration/fixture/DaemonJvmPropertiesFixture.groovy

    @SelfType(AbstractIntegrationSpec)
    trait DaemonJvmPropertiesFixture {
        void assertDaemonUsedJvm(Jvm expectedJvm) {
            assert file("javaHome.txt").text == expectedJvm.javaHome.canonicalPath
        }
    
        void captureJavaHome() {
            buildFile << """
                def javaHome = org.gradle.internal.jvm.Jvm.current().javaHome.canonicalPath
                println javaHome
                file("javaHome.txt").text = javaHome
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonToolchainInvalidCriteriaIntegrationTest.groovy

        def "Given empty daemon-jvm properties file When execute any task Then succeeds using the current java home"() {
            given:
            daemonJvmPropertiesFile.touch()
            captureJavaHome()
    
            expect:
            succeeds("help")
            assertDaemonUsedJvm(Jvm.current())
        }
    
        def "Given non-integer toolchain version When execute any task Then fails with expected exception message"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top