Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 402 for withArgument (0.27 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestEnvironmentIntegrationTest.groovy

            result.testClass('org.gradle.JUnitTest').assertTestPassed('mySystemClassLoaderIsUsed')
        }
    
        def "can run tests with custom security manager"() {
            executer
                    .withArgument("-Porg.gradle.java.installations.paths=${AvailableJavaHomes.getAvailableJvms().collect { it.javaHome.absolutePath }.join(",")}")
                    .withToolchainDetectionEnabled()
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy

        def "cannot annotate type 'java.net.URL' with @Input"() {
    
            executer.beforeExecute {
                executer.noDeprecationChecks()
                executer.withArgument("-Dorg.gradle.internal.max.validation.errors=20")
            }
    
            given:
            buildFile << """
                interface NestedBean {
                    @Input
                    Property<URL> getNested()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/cache/internal/GradleUserHomeCleanupServiceIntegrationTest.groovy

            given:
            executer.requireIsolatedDaemons() // because we want to reuse Gradle user home services
            executer.beforeExecute {
                if (!GradleContextualExecuter.embedded) {
                    executer.withArgument("-D$REUSE_USER_HOME_SERVICES=true")
                }
            }
            requireOwnGradleUserHomeDir() // because we delete caches and distributions
            alwaysCleanupCaches()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 10 15:48:56 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarEncodingIntegrationTest.groovy

                    }
                }
            """.stripIndent()
    
            when:
            executer.withDefaultCharacterEncoding('windows-1252').withTasks('jar')
            executer.withArgument("--stacktrace")
            executer.run()
    
            then:
            def jar = new JarFile(file('dest/test.jar'))
            try {
                def manifest = jar.manifest
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskExecutionIntegrationTest.groovy

                }
            """
    
            expect:
            2.times {
                succeeds(":build-logic:jar", ":app:assemble")
            }
            2.times {
                executer.withArgument("--configure-on-demand")
                succeeds(":build-logic:jar", ":app:assemble")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryDependenciesIntegrationTest.groovy

                }
            }
        }
    }
    project(":lib") {
        model {
            components {
                hello(NativeLibrarySpec)
            }
        }
    }
    """
    
            when:
            executer.withArgument('--configure-on-demand')
            succeeds ":exe:installMainExecutable"
    
            then:
            installation("exe/build/install/main").exec().out == app.englishOutput
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesCachingIntegrationTest.groovy

        def setup() {
            buildFile << """
    dependencies {
        conf 'org.test:projectA:1.0'
    }
    
    task resolve(type: Sync) {
        from configurations.conf
        into 'libs'
    }
    """
            executer.withArgument("-Ddebug.modulesource=true")
        }
    
        def "rule is cached across builds"() {
            repository {
                'org.test:projectA:1.0' {
                    dependsOn('org.test:projectB:1.0')
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ContinuousBuildChangeReportingIntegrationTest.groovy

        }
    
        def "should report changes when quiet logging used"() {
            given:
            def inputFile = inputDir.file("input.txt")
    
            when:
            executer.withArgument("-q")
            succeeds("theTask")
            inputFile.createFile()
    
            then:
            buildTriggeredAndSucceeded()
            sendEOT()
            assertReportsChanges([new ChangeEntry('new file', inputFile)])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  9. 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)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionMonitoringIntegrationTest.groovy

            if (JavaVersion.current().isJava9Compatible() && GradleContextualExecuter.isConfigCache()) {
                // For java.util.concurrent.CountDownLatch being serialized reflectively by configuration cache
                executer.withArgument('-Dorg.gradle.jvmargs=--add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.util.concurrent.locks=ALL-UNNAMED')
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top