* improved scripting

This commit is contained in:
Reinhard Pointner 2012-03-05 15:22:55 +00:00
parent 4df6fd4380
commit 0324798530
1 changed files with 3 additions and 3 deletions

View File

@ -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) {