Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getRelativeCommandLine (0.85 sec)

  1. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/AbstractDevelocityInputIgnoringServiceIntegrationTest.groovy

            buildFile << """
                ${runIgnoringInputs("""
                    def process = ${ShellScript.cmdToStringLiteral(script.getRelativeCommandLine(testDirectory))}.execute()
                    process.waitForProcessOutput(System.out, System.err)
                """)}
    
                task check {}
            """
    
            when:
            succeeds("check")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

         *
         * @param baseDir the directory to which the script path is relative
         *
         * @return the list of command line elements to start this script.
         */
        abstract List<String> getRelativeCommandLine(File baseDir);
    
        protected String getRelativePath(File baseDir) {
            // Do not use Groovy's baseDir.relativePath there. It has a custom implementation
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy

                    import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
                """, """
                    ${varInitializer.getGroovy(baseScript.getRelativeCommandLine(cwd))}
                    def process = $processCreator
                    process.waitForProcessOutput(System.out, System.err)
                """, enableIndy)
    
            when:
            configurationCacheFails(":help")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInJavaIntegrationTest.groovy

            public class SneakyPlugin implements Plugin<Project> {
                @Override
                public void apply(Project project) {
                    try {
                        ${varInitializer.getJava(baseScript.getRelativeCommandLine(cwd))}
                        Process process = $processCreator;
                        ProcessGroovyMethods.waitForProcessOutput(process, (OutputStream) System.out, (OutputStream) System.err);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInKotlinIntegrationTest.groovy

            buildKotlinFile << """
            import java.io.OutputStream
            import org.codehaus.groovy.runtime.ProcessGroovyMethods
    
            ${varInitializer.getKotlin(baseScript.getRelativeCommandLine(cwd))}
            val process = $processCreator
            ProcessGroovyMethods.waitForProcessOutput(process, System.out as OutputStream, System.err as OutputStream)
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInStaticGroovyIntegrationTest.groovy

         def "#title is intercepted in static groovy build script"(VarInitializer varInitializer) {
            given:
            def cwd = testDirectory.file(expectedPwdSuffix)
            def command = varInitializer.getGroovy(baseScript.getRelativeCommandLine(cwd)).trim()
    
            buildFile("""
            import org.codehaus.groovy.runtime.ProcessGroovyMethods
            import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

                    @Override String obtain() {
                        def baos = new ByteArrayOutputStream()
                        def process = ${ShellScript.cmdToStringLiteral(testScript.getRelativeCommandLine(testDirectory))}.execute()
                        process.waitForProcessOutput(baos, System.err)
                        return baos.toString().trim()
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top