Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 187 for Executer (0.17 sec)

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

                @Override
                void setup(AbstractConfigurationCacheIntegrationTest test) {
                    test.executer.withEnvironmentVars(variables)
                }
            }
        }
    
        static void checkEnvironmentVariableUnset(String key) {
            // We can't "unset" the variable with the API executer provides, but it isn't necessary, thanks to the filtering in
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInjection.groovy

                    return "using client JVM args"
                }
    
                @Override
                void setup(AbstractConfigurationCacheIntegrationTest test) {
                    test.executer.requireDaemon().requireIsolatedDaemons()
                    test.executer.withCommandLineGradleOpts("-D${prop}=${value}")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGradlePropertiesIntegrationTest.groovy

                println(gradleProp + '!')
            """
    
            when:
            executer.withEnvironmentVars([
                (ENV_PROJECT_PROPERTIES_PREFIX + 'gradleProp'): 1
            ])
            configurationCacheRun "help"
    
            then:
            outputContains '1!'
            configurationCache.assertStateStored()
    
            when:
            executer.withEnvironmentVars([
                (ENV_PROJECT_PROPERTIES_PREFIX + 'gradleProp'): 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsJavaPluginIntegrationTest.groovy

            """
            javaProject(file("a"))
            javaProject(file("b"), """
                dependencies {
                    implementation(project(':a'))
                }
            """)
    
            when:
            executer.withArguments(ENABLE_CLI)
            runBuildAction(new FetchCustomModelForEachProjectInParallel())
    
            then:
            fixture.assertStateStored {
                projectsConfigured(":buildSrc", ":", ":a", ":b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildTreeStructureIntegrationTest.groovy

                    }
                }
            """
        }
    
        def "restores only projects that have work scheduled"(List<String> tasks) {
            def fixture = new BuildOperationsFixture(executer, temporaryFolder)
            executer.beforeExecute {
                withArgument("-Dorg.gradle.configuration-cache.internal.load-after-store=true")
            }
            createDirs("a", "b", "c", "custom")
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDirectoryPluginIntegrationTest.groovy

                    }
                }
                apply plugin: FirstPlugin
                apply plugin: SecondPlugin
            """
    
            when:
            executer.inDirectory(file("first")).withTasks("classes").run()
            executer.inDirectory(file("second")).withTasks("classes").run()
            configurationCacheRun("-Dfirst.property=first.value", "-Dsecond.property=second.value")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheRemoteBuildScriptIntegrationTest.groovy

                print 'update remote script'
            """
    
            and:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
            configurationCache.assertStateStored()
    
            and:
            outputDoesNotContain 'update remote script'
    
            when:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionFeaturesIntegrationTest.groovy

                owner.with {
                    m2.execute(executer)
                    m2.mavenRepo().module("thing", "lib1", "2.1").publishWithChangedContent()
                }
            }
    
            @Override
            void publishWithDifferentDependencies(AbstractIntegrationSpec owner) {
                owner.with {
                    m2.execute(executer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 33K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEnablementIntegrationTest.groovy

            run 'help'
    
            then:
            fixture.assertStateLoaded()
        }
    
        def "can enable with a property in gradle user home gradle.properties"() {
            given:
            executer.requireOwnGradleUserHomeDir()
            executer.gradleUserHomeDir.file('gradle.properties') << """
                $ENABLE_GRADLE_PROP
            """
    
            when:
            run 'help'
    
            then:
            fixture.assertStateStored()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.cc.impl
    
    import org.gradle.integtests.fixtures.executer.GradleContextualExecuter
    import org.gradle.integtests.fixtures.executer.OutputScrapingExecutionResult
    import org.gradle.test.precondition.Requires
    import org.gradle.test.preconditions.IntegTestPreconditions
    import org.gradle.test.preconditions.UnitTestPreconditions
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top