Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for exec (0.26 sec)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

    
    @Suppress("UnstableApiUsage")
    fun Project.git(vararg args: String): Provider<String> {
        val projectDir = layout.projectDirectory.asFile
        val execOutput = providers.exec {
            workingDir = projectDir
            isIgnoreExitValue = true
            commandLine = listOf("git", *args)
            if (OperatingSystem.current().isWindows) {
                commandLine = listOf("cmd", "/c") + commandLine
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Feb 09 22:52:01 GMT 2024
    - 5.7K bytes
    - Viewed (2)
Back to top