Restore overloaded Fork.java methods

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@1000 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-09-11 19:21:44 +00:00
parent 26103f19d4
commit 299cef4a57
1 changed files with 7 additions and 1 deletions

View File

@ -51,7 +51,13 @@ object Fork
final class ForkJava(commandName: String) extends NotNull
{
def apply(javaHome: Option[File], options: Seq[String], log: Logger): Int =
apply(javaHome, options, None, Map.empty, BufferedOutput(log))
apply(javaHome, options, BufferedOutput(log))
def apply(javaHome: Option[File], options: Seq[String], outputStrategy: OutputStrategy): Int =
apply(javaHome, options, None, outputStrategy)
def apply(javaHome: Option[File], options: Seq[String], workingDirectory: Option[File], log: Logger): Int =
apply(javaHome, options, workingDirectory, BufferedOutput(log))
def apply(javaHome: Option[File], options: Seq[String], workingDirectory: Option[File], outputStrategy: OutputStrategy): Int =
apply(javaHome, options, workingDirectory, Map.empty, outputStrategy)
def apply(javaHome: Option[File], options: Seq[String], workingDirectory: Option[File], env: Map[String, String], outputStrategy: OutputStrategy): Int =
{
val executable = javaCommand(javaHome, commandName).getAbsolutePath