Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cmdToVarargLiterals (0.2 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationIntegrationTest.groovy

                String getGroovy(List<String> cmd) {
                    return """String[] command = [${ShellScript.cmdToVarargLiterals(cmd)}]"""
                }
    
                @Override
                String getJava(List<String> cmd) {
                    return """String[] command = new String[] { ${ShellScript.cmdToVarargLiterals(cmd)} };"""
                }
    
                @Override
                String getKotlin(List<String> cmd) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/AbstractDevelocityInputIgnoringServiceIntegrationTest.groovy

                def execOperations = objects.newInstance(ExecOperationsGetter).execOps
    
                ${runIgnoringInputs("""
                    execOperations.exec {
                        commandLine(${ShellScript.cmdToVarargLiterals(script.getRelativeCommandLine(testDirectory))})
                    }
                """)}
    
                task check {}
            """
    
            when:
            succeeds("check")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

            result.assertTaskExecuted(":printScriptOutput")
        }
    
        static String cmdToExecConfig(String... args) {
            return """
                commandLine(${ShellScript.cmdToVarargLiterals(args.toList())})
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ExternalProcessFixture.groovy

        ExternalProcessFixture(TestFile testDirectory) {
            this.testDirectory = testDirectory
        }
    
        private String getCommandLineAsVarargLiterals() {
            return ShellScript.cmdToVarargLiterals(testExecutable.commandLine)
        }
    
        interface Snippets {
            abstract String getBody()
    
            abstract String getImports()
        }
    
        interface SnippetsFactory {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

         *
         * @param cmd the command line elements to be converted
         * @return a comma-separated list of string literals
         */
        static String cmdToVarargLiterals(List<String> cmd) {
            return cmdToStringLiterals(cmd).join(", ")
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top