Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 193 for commandline (0.55 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertEquals("multithreaded", request.commandLine.getOptionValue(CLIManager.BUILDER));
            assertEquals("8", request.commandLine.getOptionValue(CLIManager.THREADS));
    
            // override from command line
            request = new CliRequest(new String[] {"--builder", "foobar"}, null);
            cli.cli(request);
            assertEquals("foobar", request.commandLine.getOptionValue("builder"));
        }
    
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  6. 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)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt

    
    fun Project.execAndGetStdout(workingDir: File, ignoreExitValue: Boolean, vararg args: String): String {
        val out = ByteArrayOutputStream()
        exec {
            isIgnoreExitValue = ignoreExitValue
            commandLine(*args)
            standardOutput = out
            this.workingDir = workingDir
        }
        return out.toString().trim()
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 933 bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

                    def message = providers.exec {
                        commandLine "cmd.exe", "/d", "/c", "type", "message"
                    }.standardOutput.asText.get()
                    print message
                """
            } else {
                scriptFile << """
                    def message = providers.exec {
                        commandLine "cat", "message"
                    }.standardOutput.asText.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/providers/services/kotlin/build.gradle.kts

            exec { // short for project.exec
                commandLine("ls", "-la")
            }
        }
    }
    // end::exec-op[]
    
    // tag::exec-op-inject[]
    abstract class MyExecOperationsTask
    @Inject constructor(private var execOperations: ExecOperations) : DefaultTask() {
    
        @TaskAction
        fun doTaskAction() {
            execOperations.exec {
                commandLine("ls", "-la")
            }
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_translate.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.h"
    
    using llvm::cl::opt;
    
    // Commandline flag to enable the control of flatbuffer import.
    bool use_external_constant;
    
    // Commandline flag to enable graph pruning.
    bool experimental_prune_unreachable_nodes_unconditionally;
    
    // NOLINTNEXTLINE
    static opt<bool, true> use_external_constant_flag(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top