<lambda>null1import org.gradle.api.tasks.AbstractExecTask 2 3 class CommandLineUtils { 4 companion object { 5 const val DEBUG = false 6 7 fun debugPrintCommandLineArgs(task: AbstractExecTask<*>) { 8 if (!DEBUG) return 9 println("---- begin command-line ----") 10 println("cd ${task.workingDir}") 11 task.commandLine.forEachIndexed { i, s -> 12 if (i != 0) print(" ") 13 print("$s") 14 if (i != task.commandLine.size) println(" \\") else println() 15 } 16 println("---- end command-line ----") 17 } 18 } 19 } 20