Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 322 for gives (0.09 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy

            problems.assertResultHasProblems(result) {
                // TODO - should fail and give some indication to the user why
            }
        }
    
        def "task execution problems are reported and fail the build by default invalidating the cache"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
    
            buildFile << """
                task broken {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/BuildTreeConfigurationCache.kt

         * configuration fingerprints and validation problems and then runs the given function.
         */
        fun maybePrepareModel(action: () -> Unit)
    
        /**
         * Loads the cached model, if available, or else runs the given function to create it and then writes the result to the cache.
         */
        fun <T : Any> loadOrCreateModel(creator: () -> T): T
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            given:
            def classpath = DefaultClassPath.of()
    
            when:
            def cachedClasspath = transformer.transform(classpath, None)
    
            then:
            cachedClasspath.empty
    
            and:
            0 * fileAccessTimeJournal._
        }
    
        def "does nothing to empty classpath when transform is build logic"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInitScriptsIntegrationTest.groovy

        def configurationCache = newConfigurationCacheFixture()
    
        @Issue("https://github.com/gradle/gradle/issues/16849")
        def "init script can declare build logic input"() {
            given:
            TestFile buildLogicInput = file('input.txt').tap {
                text = 'foo!'
            }
            TestFile initScript = file('initscript.gradle').tap {
                text = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/fixture/CrossVersionToolingApiSpecificationRetryTest.groovy

            given:
            iteration++
    
            when:
            throwWhen(new IOException("Some action failed", new GradleException("Timeout waiting to connect to Gradle daemon.\n more infos")), iteration == 1)
    
            then:
            true
        }
    
        @TargetGradleVersion(">=3.0")
        def "does not retry for 3.0 or later"() {
            given:
            iteration++
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

    class AgentApplicationTest extends AbstractIntegrationSpec {
        def "agent is enabled by default"() {
            given:
            withDumpAgentStatusTask()
    
            when:
            succeeds()
    
            then:
            agentWasApplied()
        }
    
        def "agent is not applied if disabled in the command-line"() {
            given:
            withoutAgent()
            withDumpAgentStatusTask()
    
            when:
            succeeds()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheScriptTaskDefinitionIntegrationTest.groovy

    class ConfigurationCacheScriptTaskDefinitionIntegrationTest extends AbstractConfigurationCacheIntegrationTest implements TasksWithInputsAndOutputs {
    
        def "task can have actions defined using Groovy script closures"() {
            given:
            settingsFile << """
                include 'a', 'b'
            """
            [file("a/build.gradle"), file("b/build.gradle")].each {
                it << """
                    tasks.register("some") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishHttpIntegTest.groovy

            settingsFile << "rootProject.name = '$name'"
        }
    
        def "can publish to an unauthenticated http repo (with extra checksums = #extraChecksums)"() {
            given:
            buildFile << publicationBuildWithoutCredentials(version, group, mavenRemoteRepo.uri)
    
            if (!extraChecksums) {
                executer.withArgument("-Dorg.gradle.internal.publish.checksums.insecure=true")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

    import spock.lang.Issue
    
    class ConfigurationCacheValueSourceIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        def "value source without parameters can be used as task input"() {
             given:
             def configurationCache = newConfigurationCacheFixture()
    
             buildFile("""
                import org.gradle.api.provider.*
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGradlePropertiesIntegrationTest.groovy

    class ConfigurationCacheGradlePropertiesIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        def "invalidates cache when set of Gradle property defining system properties changes"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
            settingsFile << """
                println(gradleProp + '!')
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top