Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 167 for withArgument (0.89 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

                    (DefaultTimeoutHandler.SLOW_STOP_LOG_STACKTRACE_FREQUENCY_PROPERTY): slowStopLogStacktraceFrequencyMs
                ].each { k, v ->
                    executer.withArgument("-D$k=$v".toString())
                }
            }
        }
    
        def "fails when negative timeout is specified"() {
            given:
            buildFile << """
                task broken() {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedEntryCleanupIntegrationTest.groovy

            and:
            executer.beforeExecute {
                if (!GradleContextualExecuter.embedded) {
                    executer.withArgument("-D$REUSE_USER_HOME_SERVICES=true")
                }
            }
            executer.withTasks('help').start().waitForFinish()
    
            then:
            resource.assertDoesNotExist()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

                        username = "correct-username"
                        password = "correct-password"
                    }
                }
            """
    
            when:
            executer.withArgument("--info")
            withBuildCache().run "assemble"
            then:
            outputDoesNotContain("correct-username")
            outputDoesNotContain("correct-password")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishHttpIntegTest.groovy

            given:
            buildFile << publicationBuildWithoutCredentials(version, group, mavenRemoteRepo.uri)
    
            if (!extraChecksums) {
                executer.withArgument("-Dorg.gradle.internal.publish.checksums.insecure=true")
                module.withoutExtraChecksums()
            }
            expectModulePublish(module, extraChecksums)
    
            when:
            succeeds 'publish'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

            // In a nutshell, this tests that we don't even try to load classes that are there, but that we shouldn't see.
    
            when:
            executer
                .withArgument("-Porg.gradle.java.installations.paths=${AvailableJavaHomes.getAvailableJvms().collect { it.javaHome.absolutePath }.join(",")}")
                .withToolchainDetectionEnabled()
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

            setupProjectInDir(projectDir2)
            executer.requireIsolatedDaemons()
            executer.beforeExecute {
                if (!GradleContextualExecuter.embedded) {
                    executer.withArgument("-D$REUSE_USER_HOME_SERVICES=true")
                }
            }
    
            when:
            executer.inDirectory(projectDir1)
            succeeds ":util:resolve", ":app:resolve"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

         */
        GradleExecuter withArguments(String... args);
    
        /**
         * Sets the additional command-line arguments to use when executing the build. Defaults to an empty list.
         */
        GradleExecuter withArguments(List<String> args);
    
        /**
         * Adds an additional command-line argument to use when executing the build.
         */
        GradleExecuter withArgument(String arg);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyUnresolvedModuleIntegrationTest.groovy

        MavenHttpModule moduleA
    
        def setup() {
            moduleA = publishMavenModule(mavenHttpRepo, 'a')
            downloadedLibsDir = file('build/libs')
            executer.beforeExecute {
                executer.withArgument("-D${SOCKET_TIMEOUT_SYSTEM_PROPERTY}=1000")
            }
        }
    
        void blockingForProtocol(String protocol, HttpResource... resources) {
            if (protocol == 'http') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 11:51:18 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSpiIntegrationTest.groovy

                }
            """
    
            file("src/main/java/Foo.java") << "public class Foo {}"
    
            when:
            def result = executer
                .withTasks("compileJava")
                .withArgument("--$logLevel")
                .requireOwnGradleUserHomeDir()
                .withToolchainDownloadEnabled()
                .withStackTraceChecksDisabled()
                .run()
    
            and:
            jdkRepository.stop()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 10:53:57 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java

        }
    
        @Override
        public GradleExecuter withArguments(String... args) {
            return withArguments(Arrays.asList(args));
        }
    
        @Override
        public GradleExecuter withArguments(List<String> args) {
            this.args.clear();
            this.args.addAll(args);
            return this;
        }
    
        @Override
        public GradleExecuter withArgument(String arg) {
            this.args.add(arg);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top