Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 164 for withArgument (0.31 sec)

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

            def args = allArgs
            args.remove("--no-daemon")
    
            usingToolingConnection(workingDir) { connection ->
                connection.newBuild()
                    .withArguments(args)
                    .addJvmArguments(jvmArgs)
                    .setStandardOutput(new TeeOutputStream(output, System.out))
                    .setStandardError(new TeeOutputStream(error, System.err))
                    .run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TaskProgressCrossVersionSpec.groovy

            when:
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild().withArguments("-Dorg.gradle.parallel.intra=true", '--parallel', '--max-workers=2').forTasks('parallelTasks').addProgressListener(events).run()
            }
    
            then:
            events.tasks.size() == 3
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. testing/integ-test/src/integTest/groovy/org/gradle/integtests/environment/BuildEnvironmentIntegrationTest.groovy

                """
            }
    
            when:
            executer.withArguments("-Dprop1=some-value")
            run("show")
    
            then:
            output.count("prop1=some-value") == 2
            outputContains("prop2=null")
    
            when:
            executer.withArguments("-Dprop1=new-value", "-Dprop2=other-value")
            run("show")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/DefaultGradleRunner.java

            return arguments;
        }
    
        @Override
        public DefaultGradleRunner withArguments(List<String> arguments) {
            this.arguments = Collections.unmodifiableList(new ArrayList<>(arguments));
            return this;
        }
    
        @Override
        public DefaultGradleRunner withArguments(String... arguments) {
            return withArguments(Arrays.asList(arguments));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperProjectIntegrationTest.groovy

        @Issue("https://issues.gradle.org/browse/GRADLE-1871")
        void "can specify project properties containing D"() {
            given:
            prepareWrapper()
    
            when:
            def result = wrapperExecuter.withArguments("-PfooD=bar").withTasks('echoProperty').run()
    
            then:
            assertThat(result.output, containsString("fooD=bar"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsTestKitInjectedJavaPluginIntegrationTest.groovy

                }
                runner.withTestKitDir(testKitDir)
                runner.withProjectDir(workingDir)
                def args = allArgs
                args.remove("--no-daemon")
                runner.withArguments(args)
                runner.withPluginClasspath(pluginClasspath)
                runner.withEnvironment(environmentVars)
                runner.forwardOutput()
                runner
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt

        fun run(vararg args: String) = GradleRunner.create()
            .withProjectDir(projectDir)
            .withTestKitDir(projectDir.resolve("test-kit"))
            .withPluginClasspath()
            .forwardOutput()
            .withArguments(*args)
    
    
        protected
        fun assertChangesProperlyOrdered() {
            val result = run(":verifyAcceptedApiChangesOrdering").build()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/artifactreuse/ArtifactResolutionQueryIntegrationTest.groovy

                configurations.compileClasspath.files.collect { it.file }
            }
        }
    }
    """
            executer.requireOwnGradleUserHomeDir().requireIsolatedDaemons()
    
            expect:
            def build = executer.withArguments('query:query', ':resolve:resolve', '--parallel').start()
    
            handler.waitForAllPendingCalls()
            handler.release('/sync')
            Thread.sleep(1000)
            handler.release(module.pom.path)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceParallelExecutionIntegrationTest.groovy

            blockingServer.expectConcurrent(2, "a", "b", "c")
    
            run ":a:ping", ":b:ping", ":c:ping"
        }
    
        void withParallelThreads(int threadCount) {
            executer.beforeExecute {
                withArguments("--max-workers=$threadCount", "--parallel")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TestKitIntegrationTest.kt

                        GradleRunner
                            .create()
                            .withProjectDir(temporaryFolder.root)
                            .withPluginClasspath()
                            .withArguments(*arguments)
                            .withTestKitDir(java.io.File("${executer.gradleUserHomeDir.normalisedPath}"))
                            .build()
    
                    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 10:30:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top