* flatten execute args for convenience

This commit is contained in:
Reinhard Pointner 2013-10-13 10:38:31 +00:00
parent 559b79026e
commit 071ee0f1b0
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def XML(bc) {
import com.sun.jna.Platform
def execute(Object... args) {
def cmd = args.collect{ it as String }
def cmd = (args as List).flatten().collect{ it as String }
if (Platform.isWindows()) {
// normalize file separator for windows and run with cmd so any executable in PATH will just work