* support single-argument cmdline usage for execute(...)

This commit is contained in:
Reinhard Pointner 2013-04-24 15:17:02 +00:00
parent 32b7e0a37d
commit 441f2fd2cf
2 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,8 @@ def XML(bc) {
import com.sun.jna.Platform
def execute(Object... args) {
def cmd = args.toList()*.toString()
def cmd = args.length == 1 ? args[0] as String : args.collect{ it as String }
if (tryQuietly{ Platform.isWindows() }) {
// normalize file separator for windows and run with cmd so any executable in PATH will just work
cmd = ['cmd', '/c'] + cmd

View File

@ -10,6 +10,7 @@
\d{2,4}.\b\d{2}.\b\d{2}.\b\d{2}.\b\d{2}
^(TV.)?(Show|Serie)[s]?
^[0-9]{1,2}[.]
^[A-Z0-9]$
^[lp]
^Action$
^Adventure$