Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 389 for withArgument (0.27 sec)

  1. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/AbstractAntlrIntegrationTest.groovy

    abstract class AbstractAntlrIntegrationTest extends AbstractIntegrationSpec {
    
        def setup() {
            // So we can assert on which version of ANTLR is used at runtime
            executer.withArgument("-i")
            buildFile << """
                allprojects {
                    apply plugin: 'java'
                    ${mavenCentralRepository()}
                    tasks.withType(JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractSampleIntegrationTest.groovy

        def configureExecuterForToolchains(String... versions) {
            def jdks = AvailableJavaHomes.getJdks(versions)
            Assume.assumeTrue(versions.length == jdks.size())
            executer.beforeExecute {
                withArgument("-Porg.gradle.java.installations.paths=" + jdks.collect { it.javaHome.absolutePath }.join(","))
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/cache/CachingIntegrationFixture.groovy

        }
    
        TestFile getMetadataCacheDir() {
            return userHomeCacheDir.file(CacheLayout.MODULES.key)
        }
    
        void markForArtifactCacheCleanup() {
            executer.withArgument("-Dorg.gradle.internal.cleanup.external.max.age=-1")
            TestFile gcFile = metadataCacheDir.file("gc.properties")
            gcFile.createFile()
            assert gcFile.setLastModified(0)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rocache/DynamicVersionsReadOnlyCacheDependencyResolutionTest.groovy

                }
            """
    
            when:
            withReadOnlyCache()
            latest.rootMetaData.allowGetOrHead()
            expectResolve(latest)
            if (resolveDynamic) {
                executer.withArgument("--refresh-dependencies")
            }
    
            succeeds ':checkDeps'
    
            then:
            resolve.expectGraph {
                root(':', 'org.gradle:ro-test:20') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. 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)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocToolchainIntegrationTest.groovy

            skipped(":javadoc")
    
            when:
            executer.withArgument("-Ptest.javadoc.version=${jdk2.javaVersion.majorVersion}")
            withInstallations(jdk1, jdk2).run(":javadoc")
            then:
            executedAndNotSkipped(":javadoc")
            file("build/docs/javadoc/Lib.html").text.contains("Some API documentation.")
    
            when:
            executer.withArgument("-Ptest.javadoc.version=${jdk2.javaVersion.majorVersion}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenRemoteDependencyWithGradleMetadataResolutionIntegrationTest.groovy

                }
            }
    
            when:
            server.resetExpectations()
            m.pom.expectHead()
            m.moduleMetadata.expectHead()
            m.artifact.expectHead()
    
            executer.withArgument("--refresh-dependencies")
            run("checkDeps")
    
            then:
            resolve.expectGraph {
                root(":", ":test:") {
                    module("test:a:1.2")
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonStartupMessageIntegrationTest.groovy

            then:
            !output.contains(DaemonStartupMessage.STARTING_DAEMON_MESSAGE)
        }
    
        def "the message is not shown when quiet log level is requested"() {
            given:
            executer.withArgument("-q")
    
            when:
            succeeds()
    
            then:
            !output.contains(DaemonStartupMessage.STARTING_DAEMON_MESSAGE)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

                    }
                }
            """
    
            when:
            def block = server.expectAndBlock("block")
            def client = new DaemonClientFixture(executer.withArgument("--debug").withTasks("block").start())
            block.waitForAllPendingCalls()
            daemons.daemon.assertBusy()
            client.kill()
    
            then:
            daemons.daemon.becomesCanceled()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/CrashingBuildsArtifactTransformIntegrationTest.groovy

        doLast {
            fileCollection.files
        }
    }
    """
            // Ensure build scripts compiled
            run("help")
    
            when:
            def build1 = executer.withTasks("redThings").withArgument("-Dcrash=true").start()
            build1.waitForFailure()
    
            run("redThings")
    
            then:
            output.count("Transforming") == 1
            output.count("Transforming thing.jar to Red") == 1
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top