* improved scripting
This commit is contained in:
parent
4df6fd4380
commit
0324798530
|
@ -99,11 +99,11 @@ Object.metaClass.applyTextTemplate = { template -> new GStringTemplateEngine().c
|
|||
// Shell helper
|
||||
import static com.sun.jna.Platform.*
|
||||
|
||||
def execute(String... args) {
|
||||
def cmd = args.toList()
|
||||
def execute(Object... args) {
|
||||
def cmd = args.toList()*.toString()
|
||||
if (isWindows()) {
|
||||
// normalize file separator for windows and run with cmd so any executable in PATH will just work
|
||||
cmd = ['cmd', '/c'] + cmd*.replace('/','\\')
|
||||
cmd = ['cmd', '/c'] + cmd
|
||||
}
|
||||
|
||||
if (!_args.trustScript) {
|
||||
|
|
Loading…
Reference in New Issue