Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for assertDaemonUsedJvm (0.18 sec)

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

            captureJavaHome()
            executer.withArgument("-Porg.gradle.java.installations.auto-detect=false")
    
            expect:
            withInstallations(otherJvm).succeeds("help")
            assertDaemonUsedJvm(otherJvm)
        }
    
        @Requires(IntegTestPreconditions.JavaHomeWithDifferentVersionAvailable)
    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

            given:
            writeJvmCriteria(Jvm.current())
            captureJavaHome()
    
            expect:
            succeeds("help")
            assertDaemonUsedJvm(Jvm.current())
            outputContains("Daemon JVM discovery is an incubating feature.")
        }
    
        @Requires(IntegTestPreconditions.JavaHomeWithDifferentVersionAvailable)
    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

            writeJvmCriteria(otherJdk)
            captureJavaHome()
    
            when:
            withInstallations(otherJdk).succeeds()
    
            then:
            assertDaemonUsedJvm(otherJdk)
            wasForked()
            daemons.daemon.stops()
        }
    
        @Requires(IntegTestPreconditions.JavaHomeWithDifferentVersionAvailable)
    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

    import org.gradle.internal.jvm.Jvm
    import org.gradle.test.fixtures.file.TestFile
    
    @SelfType(AbstractIntegrationSpec)
    trait DaemonJvmPropertiesFixture {
        void assertDaemonUsedJvm(Jvm expectedJvm) {
            assert file("javaHome.txt").text == expectedJvm.javaHome.canonicalPath
        }
    
        void captureJavaHome() {
            buildFile << """
    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

            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"() {
            given:
    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