mirror of https://github.com/sbt/sbt.git
add another Process constructor
This commit is contained in:
parent
5ab652f02d
commit
2d535e25c8
|
|
@ -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 : _*)
|
||||
|
|
|
|||
Loading…
Reference in New Issue