Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 223 for commandline (0.29 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

                    dependsOn 'compileJava'
                    commandLine '${fileToPath(Jvm.current().javaExecutable)}', '-cp', '${fileToPath(file('build/classes/java/main'))}', 'Block'
                }
    
                task projectExecTask {
                    dependsOn 'compileJava'
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginConfigurationIntegrationTest.groovy

            run("installDist")
    
            def out = new ByteArrayOutputStream()
            def executer = new ScriptExecuter()
            executer.workingDir = testDirectory
            executer.standardOutput = out
            executer.commandLine = "build/install/test/bin/test"
            def result = executer.run()
            then:
            result.assertNormalExitValue()
            out.toString() == TextUtil.toPlatformLineSeparators("all good\n")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/credentials-handling/pass-credentials-to-external-tool-via-stdin/groovy/build.gradle

    def login = tasks.register('login', Exec) {
        def loginProvider = providers.credentials(PasswordCredentials, 'login')
        inputs.property('credentials', loginProvider)
    
        commandLine = ['sh', 'login.sh']
        doFirst {
            def loginCredentials = loginProvider.get()
            standardInput = new ByteArrayInputStream("$loginCredentials.username\n$loginCredentials.password".getBytes())
        }
    }
    
    tasks.register('doAuthenticated') {
        dependsOn(login)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 521 bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

            return execute(["bash"] as Object[], new ByteArrayInputStream(commands.getBytes()))
        }
    
        private String execute(Object[] commandLine, InputStream input) {
            def output = new ByteArrayOutputStream()
            def e = TestFiles.execHandleFactory().newExec()
                    .commandLine(commandLine)
                    .redirectErrorStream()
                    .setStandardInput(input)
                    .setStandardOutput(output)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/process-services/src/main/java/org/gradle/process/ExecSpec.java

         * @return this
         */
        ExecSpec commandLine(Object... args);
    
        /**
         * Sets the full command line, including the executable to be executed plus its arguments.
         *
         * @param args the command plus the args to be executed
         * @return this
         */
        ExecSpec commandLine(Iterable<?> args);
    
        /**
         * Adds arguments for the command to be executed.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. 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)
  7. platforms/documentation/docs/src/samples/credentials-handling/pass-credentials-to-external-tool-via-stdin/kotlin/build.gradle.kts

    val login = tasks.register<Exec>("login") {
        val loginProvider = providers.credentials(PasswordCredentials::class.java, "login")
        inputs.property("credentials", loginProvider)
    
        commandLine = listOf("sh", "login.sh")
        doFirst {
            val loginCredentials = loginProvider.get()
            standardInput = java.io.ByteArrayInputStream("${loginCredentials.username}\n${loginCredentials.password}".toByteArray())
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 551 bytes
    - Viewed (0)
  8. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/RemoteProject.groovy

            cleanTemporaryDir(fsOps, checkoutDir)
            execOps.exec {
                commandLine = ["git", "clone", "--no-checkout", remoteUri, checkoutDir.absolutePath]
                errorOutput = System.out
            }
            execOps.exec {
                commandLine = ["git", "checkout", ref]
                workingDir = checkoutDir
                errorOutput = System.out
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 06 10:57:13 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/console/AbstractExecOutputIntegrationTest.groovy

        def "Project.exec output is grouped with its task output"() {
            given:
            buildFile << """
                task run {
                    doLast {
                        project.exec {
                            commandLine ${echo(EXPECTED_OUTPUT)}
                        }
                    }
                }
            """
    
            when:
            executer.withConsole(consoleType)
            succeeds("run")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/valueProviders/externalProcessValueSource/groovy/build.gradle

        @Inject
        abstract ExecOperations getExecOperations()
    
        String obtain() {
            ByteArrayOutputStream output = new ByteArrayOutputStream()
            execOperations.exec {
                it.commandLine "git", "--version"
                it.standardOutput = output
            }
            return new String(output.toByteArray(), Charset.defaultCharset())
        }
    }
    // end::value-source[]
    
    // tag::create-provider[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 795 bytes
    - Viewed (0)
Back to top