Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 168 for withArgument (0.25 sec)

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

                    doLast {
                        configurations.compileClasspath.files
                        $queries
                    }
                }
            """
            executer.withArgument("--no-configuration-cache") // task uses Configuration API
            run ":populateCache"
            executer.stop()
            copyToReadOnlyCache()
            buildFile.setText("")
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. 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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            then:
            skipped(":someTask")
    
            // add property
            when:
            buildFile << """
    someTask.inputs.property("b", 12)
    """
            and:
            executer.withArgument("-i")
            run "someTask"
    
            then:
            executedAndNotSkipped(":someTask")
            outputContains("Input property 'b' has been added for task ':someTask'")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

    @Requires(IntegTestPreconditions.NotDaemonExecutor)
    class SingleUseDaemonIntegrationTest extends AbstractIntegrationSpec implements DaemonJvmPropertiesFixture, JavaToolchainFixture {
    
        def setup() {
            executer.withArgument("--no-daemon")
            executer.requireIsolatedDaemons()
        }
    
        def "forks build when JVM args are requested"() {
            requireJvmArg('-Xmx64m')
    
            file('build.gradle') << "println 'hello world'"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ArtifactCollectionIntegrationTest.groovy

                // For java.util.concurrent.CopyOnWriteArrayList from DefaultMultiCauseException being serialized reflectively by configuration cache
                executer.withArgument('-Dorg.gradle.jvmargs=--add-opens java.base/java.util.concurrent=ALL-UNNAMED')
            }
            fails "verify"
    
            then:
            if (FluidDependenciesResolveInterceptor.isFluid()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/groovy/org/gradle/vfs/FileSystemWatchingSoakTest.groovy

                    return sourceFile
                }
            }
    
            executer.beforeExecute {
                withWatchFs()
                // running in parallel, so the soak test doesn't take this long.
                withArgument("--parallel")
                vfsLogs = enableVerboseVfsLogs()
                inDirectory(rootProject)
            }
        }
    
        def "file watching works with multiple builds on the same daemon"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            and:
            pidFile().exists()
            def pid2 = pidFile().text.strip() as long
            pid2 == pid1
        }
    
        private void startBuild(String task) {
            executer
                .withArgument('--debug')
                .withWorkerDaemonsExpirationDisabled()
                .withTasks(task)
    
            client = new DaemonClientFixture(executer.start())
        }
    
        private void cancelBuild() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. 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)
  9. testing/soak/src/integTest/groovy/org/gradle/resolve/DependencyResolutionStressTest.groovy

                            requireDaemon().requireIsolatedDaemons().
                            withGradleUserHomeDir(workspace.file("user-home"))
                    8.times {
                        executer.inDirectory(buildDir).withArgument("--refresh-dependencies").withTasks('check').run()
                    }
                }
            }
            concurrent.finished()
        }
    
        static class StressHttpServer extends ExternalResource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/GradleBuildTaskIntegrationTest.groovy

                barrier.expectConcurrent("child-build-finished", "1-finished", "2-finished")
            }
    
            when:
            runs.times {
                executer.withArgument("--parallel")
                run 'otherBuild'
            }
    
            then:
            noExceptionThrown()
    
            and:
            def runNestedBuildOps = buildOperations.all(RunNestedBuildBuildOperationType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top