Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for withArgument (0.24 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ConfigurationBuildDependenciesIntegrationTest.groovy

                    artifacts {
                        compile file: file('thing.txt'), builtBy: { throw new RuntimeException('broken') }
                    }
                }
    """
    
            expect:
            executer.withArgument("--dry-run")
            fails("useCompileConfiguration")
            failure.assertHasDescription("Could not determine the dependencies of task ':useCompileConfiguration'.")
            failure.assertHasCause('broken')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractContinuousIntegrationTest.groovy

            executer.beforeExecute {
                def initScript = file("init.gradle")
                initScript.text = buildLogicForMinimumBuildTime(minimumBuildTimeMillis)
                withArgument("-I").withArgument(initScript.absolutePath)
            }
        }
    
        protected int getMinimumBuildTimeMillis() {
            2000
        }
    
        protected void withoutContinuousBuild() {
            withoutContinuousArg = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/UnsafeConfigurationResolutionDeprecationIntegrationTest.groovy

                        bar
                    }
    
                    dependencies {
                        bar "test:test-jar:1.0"
                    }
                }
            """
            executer.withArgument("--parallel")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 20:27:07 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationDefaultsIntegrationTest.groovy

            then:
            resolve.expectGraph {
                root(":", ":test:") {
                    module("org:default-dependency:1.0")
                }
            }
    
            when:
            executer.withArgument("-DexplicitDeps=yes")
            run "checkDeps"
    
            then:
            resolve.expectGraph {
                root(":", ":test:") {
                    module("org:explicit-dependency:1.0")
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:18:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

                            tasks.create(name, SerialPing)
                        }
                    }
                }
            """
            executer.beforeExecute {
                withArgument('--info')
            }
        }
    
        void withInvalidPing() {
            buildFile << """
                abstract class InvalidPing extends Ping {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                    }
    
                    @TaskAction
                    public void doStuff() { }
                }
            """
    
            expect:
            executer.withArgument("-Dorg.gradle.internal.max.validation.errors=10")
            assertValidationFailsWith([
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                    @Nested
                    public NestedBean getNestedBean() { return nested; }
                }
            """
    
            expect:
            executer.withArgument("-Dorg.gradle.internal.max.validation.errors=7")
            assertValidationFailsWith([
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                    'init.gradle'("""
                        // init script
                        ${this.instrument('"init"')}
                    """)
                }
            }
    
            when:
            executer.withArgument('-Igradle/init.gradle')
            run 'help'
    
            then:
            def scripts = scriptDetails()
            scripts.size() == 2
            hasScript('init', scripts)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top