Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 168 for withArgument (0.14 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/MavenHttpPluginRepository.groovy

            executer.beforeExecute(new Action<GradleExecuter>() {
                void execute(GradleExecuter e) {
                    if (server.running) {
                        e.withArgument("-D${PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY}=${uri.toString()}")
                    }
                }
            })
            executer
        }
    
    
        @Override
        Statement apply(Statement base, Description description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDebugLogIntegrationTest.groovy

            switch (enablement) {
                case CCDebugEnablement.DEBUG_LOG_LEVEL:
                    withDebugLogging()
                    break
                case CCDebugEnablement.SYSTEM_PROPERTY:
                    executer.withArgument "-D$ConfigurationCacheDebugOption.PROPERTY_NAME=true"
                    break
                case CCDebugEnablement.GRADLE_PROPERTIES_FILE:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/CrossCompilationIntegrationTest.groovy

                        new Thing();
                    }
                }
            """
    
            when:
            executer.beforeExecute({
                withArgument("-Porg.gradle.java.installations.paths=" + jvm.getJavaHome().getAbsolutePath())
            })
            fails("build")
    
            then:
            failure.assertHasDescription("Execution failed for task ':compileJava'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

                        new CountDownLatch(1).await();
                    }
                }
            """
        }
    
        private void startBuild(String task, boolean buildCacheEnabled) {
            executer.withArgument('--debug').withTasks(task)
            if (buildCacheEnabled) {
                executer.withBuildCacheEnabled()
            }
    
            client = new DaemonClientFixture(executer.start())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildTreeStructureIntegrationTest.groovy

            """
        }
    
        def "restores only projects that have work scheduled"(List<String> tasks) {
            def fixture = new BuildOperationsFixture(executer, temporaryFolder)
            executer.beforeExecute {
                withArgument("-Dorg.gradle.configuration-cache.internal.load-after-store=true")
            }
            createDirs("a", "b", "c", "custom")
            settingsFile << """
                rootProject.name = 'thing'
                include 'a', 'b', 'c'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

    }
    
    """
    
            when:
            executer.withArgument("-Dprop=123")
            run("thing")
    
            then:
            executedAndNotSkipped(":thing")
    
            when:
            executer.withArgument("-Dprop=123")
            run("thing")
    
            then:
            skipped(":thing")
    
            when:
            executer.withArgument("-Dprop=abc")
            run("thing")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rocache/StaticVersionsReadOnlyCacheDependencyResolutionTest.groovy

            core.rootMetaData.allowGetOrHead()
            util.allowAll()
    
            if (resolveDynamic) {
                mavenHttpRepo.module('org.readonly', 'core', '0.9').publish()
                executer.withArgument("--refresh-dependencies")
            }
    
            succeeds ':checkDeps', ':extraArtifacts'
    
            then:
            resolve.expectGraph {
                root(':', 'org.gradle:ro-test:20') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

     * {@code Pmd} tasks behave as expected.
     */
    class PmdPluginToolchainsIntegrationTest extends AbstractPmdPluginVersionIntegrationTest implements JavaToolchainFixture {
    
        def setup() {
            executer.withArgument("--info")
        }
    
        def "uses jdk from toolchains set through java plugin"() {
            Assume.assumeTrue(fileLockingIssuesSolved())
            given:
            goodCode()
            def jdk = setupExecutorForToolchains()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

                }
            """
    
            file("src/main/java/Thing.java") << """
                /** Some thing. */
                public class Thing { }
            """
            executer.withArgument("-Porg.gradle.java.installations.paths=" + jvm.javaHome.absolutePath)
        }
    
        def "can compile source and run JUnit tests using target Java version"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/operations/BuildOperationExecutorIntegrationTest.groovy

            if (JavaVersion.current().isJava9Compatible() && GradleContextualExecuter.isConfigCache()) {
                // For java.util.concurrent.CountDownLatch being serialized reflectively by configuration cache
                executer.withArgument('-Dorg.gradle.jvmargs=--add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.util.concurrent.locks=ALL-UNNAMED')
            }
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 12:12:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top