Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for printEnvironmentVariable (0.3 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

            protected Builder() {}
    
            abstract Builder printArguments();
    
            abstract Builder printText(String text);
    
            abstract Builder printEnvironmentVariable(String variableName)
    
            abstract Builder printWorkingDir()
    
            abstract Builder withExitValue(int exitValue)
    
            protected Builder addLine(String line) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

        def "providers.exec can be used during configuration time"() {
            given:
            def testScript = ShellScript.builder()
                .printArguments()
                .printEnvironmentVariable("TEST_FOO")
                .writeTo(testDirectory, "script")
    
            buildFile """
                def execProvider = providers.exec {
                    ${cmdToExecConfig(*testScript.commandLine, "--some-arg")}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationIntegrationTest.groovy

        // spaces and it breaks logic String.execute which splits the given string at spaces without
        // any options to escape the space.
        ShellScript baseScript = ShellScript.builder().printEnvironmentVariable('FOOBAR').printWorkingDir().writeTo(testDirectory, "test")
    
        def setup() {
            testDirectory.createDir(pwd)
        }
    
    
        static String getPwd() {
            return "tmp"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top