From 2d535e25c8bd5e834eb38c005d66edac3192d6c4 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 27 Sep 2010 18:50:17 -0400 Subject: [PATCH] add another Process constructor --- util/process/Process.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/process/Process.scala b/util/process/Process.scala index 79bffe075..2dd70484c 100644 --- a/util/process/Process.scala +++ b/util/process/Process.scala @@ -32,6 +32,9 @@ object Process extends ProcessExtra /** create ProcessBuilder with working dir set to File and extra environment variables */ def apply(command: String, cwd: File, extraEnv: (String,String)*): ProcessBuilder = apply(command, Some(cwd), extraEnv : _*) + /** create ProcessBuilder with working dir set to File and extra environment variables */ + def apply(command: Seq[String], cwd: File, extraEnv: (String,String)*): ProcessBuilder = + apply(command, Some(cwd), extraEnv : _*) /** create ProcessBuilder with working dir optionaly set to File and extra environment variables */ def apply(command: String, cwd: Option[File], extraEnv: (String,String)*): ProcessBuilder = { apply(command.split("""\s+"""), cwd, extraEnv : _*)