Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for withArgument (0.19 sec)

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

                print 'update remote script'
            """
    
            and:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
            configurationCache.assertStateStored()
    
            and:
            outputDoesNotContain 'update remote script'
    
            when:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/AbstractIsolatedProjectsIntegrationTest.groovy

        public static final String ENABLE_CLI = "-D${PROPERTY_NAME}=true"
        final def fixture = new IsolatedProjectsFixture(this)
    
        void withIsolatedProjects() {
            executer.withArgument(ENABLE_CLI)
        }
    
        void isolatedProjectsRun(String... tasks) {
            run(ENABLE_CLI, *tasks)
        }
    
        void isolatedProjectsFails(String... tasks) {
            fails(ENABLE_CLI, *tasks)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

            outputContains("agent applied = $applied")
        }
    
        private void withAgent() {
            withAgentApplied(true)
        }
    
        private void withAgentApplied(boolean shouldApply) {
            executer.withArgument("-D${DaemonBuildOptions.ApplyInstrumentationAgentOption.GRADLE_PROPERTY}=$shouldApply")
        }
    
        private void withoutAgent() {
            withAgentApplied(false)
        }
    
        DaemonLogsAnalyzer getDaemons() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. 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)
  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. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            m2.assertNoLeftoverState()
    
            m2.isolateMavenLocalRepo(executer)
            executer.beforeExecute {
                withArgument("-Dorg.gradle.internal.repository.max.tentatives=$maxHttpRetries")
                if (maxUploadAttempts != null) {
                    withArgument("-Dorg.gradle.internal.network.retry.max.attempts=$maxUploadAttempts")
                }
            }
        }
    
        def cleanup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

                        provider.get().increment()
                    }
                }
    
                provider.get().increment()
            """
            executer.beforeExecute {
                withArgument("--configuration-cache")
                withArgument("-Dorg.gradle.configuration-cache.internal.load-after-store=true")
            }
    
            when:
            run("count")
    
            then:
            output.count("service:") == 6
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
Back to top