Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 140 for commandline (0.43 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/documentation/docs/src/snippets/valueProviders/externalProcessValueSource/kotlin/build.gradle.kts

        @get:Inject
        abstract val execOperations: ExecOperations
    
        override fun obtain(): String {
            val output = ByteArrayOutputStream()
            execOperations.exec {
                commandLine("git", "--version")
                standardOutput = output
            }
            return 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
    - 811 bytes
    - Viewed (0)
  9. docs/docker/README.md

    To start a stopped container, you can use the [`docker start`](https://docs.docker.com/engine/reference/commandline/start/) command.
    
    ```sh
    docker start <container_id>
    ```
    
    To stop a running container, you can use the [`docker stop`](https://docs.docker.com/engine/reference/commandline/stop/) command.
    
    ```sh
    docker stop <container_id>
    ```
    
    ### MinIO container logs
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tf_tfl_translate_cl.h

    // required by the TensorFlow Graph(Def) to TF Lite Flatbuffer conversion. It is
    // only intended to be included by binaries.
    
    #include <string>
    
    #include "llvm/Support/CommandLine.h"
    
    // The commandline options are defined in LLVM style, so the caller should
    // use llvm::InitLLVM to initialize the options.
    //
    // Please see the implementation file for documentation of details of these
    // options.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top