Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 94 for withArgument (0.17 sec)

  1. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/AbstractWrapperIntegrationSpec.groovy

            executer.beforeExecute(action)
            executer.withArguments("wrapper", "--gradle-distribution-url", distributionUri.toString()).run()
        }
    
        void prepareWrapper(URI distributionUri = distribution.binDistribution.toURI(), TestKeyStore keyStore) {
            def executer = new InProcessGradleExecuter(distribution, temporaryFolder)
            executer.withArguments(
                "wrapper",
                "--gradle-distribution-url",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

                assert configurations.runtimeClasspath.attributes.getAttribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE) == ${javaVersion}
            """
    
            expect:
            executer.withArgument("-Porg.gradle.java.installations.paths=" + jdk.javaHome.absolutePath)
            succeeds("compileJava")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

            gradleExecuterFor(arrayOf("check", "publish"), rootDir = file("plugin"))
                .withJavaHome(currentJvm.javaHome)
                .withArgument("-Porg.gradle.java.installations.paths=$installationPaths")
                .run()
    
            withSettingsIn("consumer", """
                pluginManagement {
                    repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationsFixture.groovy

            this.path = projectDir.testDirectory.file(operationsTraceName).absolutePath
            executer.beforeExecute {
                this.tree = null
                executer.withArgument("-D$BuildOperationTrace.SYSPROP=$path")
            }
        }
    
        @Override
        List<BuildOperationRecord> getRoots() {
            getTree().roots
        }
    
        List<BuildOperationRecord> getDanglingChildren() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top