Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for withGradleInstallation (0.41 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

            """
    
            when:
            def runner = GradleRunner.create()
            runner.withJvmArguments("-javaagent:${agentJar}")
            if (!GradleContextualExecuter.embedded) {
                runner.withGradleInstallation(buildContext.gradleHomeDir)
            }
            runner.withArguments("--configuration-cache")
            runner.forwardOutput()
            runner.withProjectDir(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/GradleRunner.java

         * The system property and environment variable are read in the process using the runner, not the build process.
         * <p>
         * Alternatively, you may use {@link #withGradleInstallation(File)} to use an installation already on the filesystem.
         * <p>
         * To use a non standard Gradle runtime, or to obtain the runtime from an alternative location, use {@link #withGradleDistribution(URI)}.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/SmokeTestGradleRunner.groovy

            delegate.withGradleVersion(versionNumber)
            return this
        }
    
        @Override
        SmokeTestGradleRunner withGradleInstallation(File installation) {
            delegate.withGradleInstallation(installation)
            return this
        }
    
        @Override
        SmokeTestGradleRunner withGradleDistribution(URI distribution) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginTest.kt

                        File(projectRoot, "gradle.properties").writeText("org.gradle.jvmargs=-Xmx128m")
    
                        // and:
                        val runner = GradleRunner.create()
                            .withGradleInstallation(File("${distribution.gradleHomeDir.normalisedPath}"))
                            .withTestKitDir(File("${executer.gradleUserHomeDir.normalisedPath}"))
                            .withProjectDir(projectRoot)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/test_kit.adoc

    * link:{javadocPath}/org/gradle/testkit/runner/GradleRunner.html#withGradleInstallation-java.io.File-[GradleRunner.withGradleInstallation(java.io.File)]
    * link:{javadocPath}/org/gradle/testkit/runner/GradleRunner.html#withGradleDistribution-java.net.URI-[GradleRunner.withGradleDistribution(java.net.URI)]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractSmokeTest.groovy

            assert parentDir.isDirectory() || parentDir.mkdirs()
    
            file
        }
    
        SmokeTestGradleRunner runner(String... tasks) {
            def gradleRunner = GradleRunner.create()
                .withGradleInstallation(IntegrationTestBuildContext.INSTANCE.gradleHomeDir)
                .withTestKitDir(IntegrationTestBuildContext.INSTANCE.gradleUserHomeDir)
                .withProjectDir(testProjectDir)
                .forwardOutput()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 08:14:32 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/DefaultGradleRunner.java

        public GradleRunner withGradleVersion(String versionNumber) {
            this.gradleProvider = GradleProvider.version(versionNumber);
            return this;
        }
    
        @Override
        public GradleRunner withGradleInstallation(File installation) {
            this.gradleProvider = GradleProvider.installation(installation);
            return this;
        }
    
        @Override
        public GradleRunner withGradleDistribution(URI distribution) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/AlreadyOnClasspathPluginUseIntegrationTest.groovy

                            \"\"\".stripIndent()
    
                            //when:
                            def runner = GradleRunner.create()
                                .withGradleInstallation(new File("${TextUtil.normaliseFileSeparators(distribution.gradleHomeDir.absolutePath)}"))
                                .withTestKitDir(new File("${TextUtil.normaliseFileSeparators(executer.gradleUserHomeDir.absolutePath)}"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top