Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 402 for withArgument (0.36 sec)

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

            snapshotA.metaData.expectHead()
            snapshotA.pom.expectHead()
            snapshotA.artifact.expectHead()
            snapshotA.artifact.expectGet()
    
            and:
            executer.withArgument('-PskipCache')
            run 'retrieve'
    
            then:
            executed ':retrieve'
            file('libs').assertHasDescendants('projectA-1.1-SNAPSHOT.jar')
    
            // Jar artifact removal is detected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaToolchainUpToDateIntegrationTest.groovy

                    }
                }
            """
        }
    
        def runWithToolchainConfigured(Jvm jvm) {
            result = executer
                .withArgument("-Porg.gradle.java.installations.paths=" + jvm.javaHome.absolutePath)
                .withTasks("check", "javadoc")
                .run()
        }
    
        private static String testClass(String className) {
            return """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/software/resources-sftp/src/integTest/groovy/org/gradle/integtests/resolve/resource/sftp/SftpClientReuseIntegrationTest.groovy

                }
            """
            sftpServer.expectLstat("/")
            def sync = coordinator.expectAndBlock('sync')
    
            when:
            def gradle = executer.withTasks('reuseClient').withArgument("--info").start()
            sync.waitForAllPendingCalls()
    
            then:
            sftpServer.clearSessions()
            sftpServer.expectLstat("/")
            sleep(1000)
    
            when:
            sync.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskOnlyIfReasonIntegrationTest.groovy

        def 'task skipped by #condition reports "#reason"'() {
            buildFile("""
                tasks.register("task") {
                    $condition
                }
            """)
    
            when:
            executer.withArgument("--info")
            succeeds(":task")
    
            then:
            assertTaskSkippedWithMessage(reason, ":task")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 01 11:18:25 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  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. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/M2Installation.groovy

                }
            }
        }
    
        private static void setMavenLocalLocation(GradleExecuter gradleExecuter, File destination) {
            gradleExecuter.withArgument("-Dmaven.repo.local=${destination?:''}" )
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/TaskEnumTypesInputPropertyIntegrationTest.groovy

            // Change the values of the property
            when:
            buildFile.replace("[BuildSrcEnum.E1, ScriptEnum.E1, pluginValue] as $type", "[BuildSrcEnum.E2, pluginValue] as $type")
    
            and:
            executer.withArgument("-i")
            run "someTask"
    
            then:
            executedAndNotSkipped(":someTask")
            outputContains("Value of input property 'v' has changed for task ':someTask'")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 8.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleBuildResultFunctionalTest.groovy

    .*"""
        }
    
        def "outcome for successful build is not logged with --quiet"() {
            given:
            buildFile << """
                task success
            """
    
            when:
            executer.withArgument("--quiet")
            succeeds('success')
    
            then:
            result.assertNotOutput("BUILD SUCCESSFUL")
            result.assertNotOutput("actionable task")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top