* fix shell call

This commit is contained in:
Reinhard Pointner 2011-11-29 06:29:05 +00:00
parent cfb6512063
commit cc73f42b6b
1 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,9 @@ List.metaClass.mapByExtension = { mapByExtension(delegate) }
// Shell helper
import static com.sun.jna.Platform.*;
def run(String... cmd) {
cmd = cmd.toList()
def execute(String... args) {
def cmd = args.toList()
if (isWindows()) {
cmd = ["cmd", "/c"] + cmd;
}