From 299cef4a57abbea54e27317e947b0d9d17e8fee1 Mon Sep 17 00:00:00 2001 From: dmharrah Date: Fri, 11 Sep 2009 19:21:44 +0000 Subject: [PATCH] Restore overloaded Fork.java methods git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@1000 d89573ee-9141-11dd-94d4-bdf5e562f29c --- src/main/scala/sbt/Fork.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/scala/sbt/Fork.scala b/src/main/scala/sbt/Fork.scala index 8669d8f49..281258783 100644 --- a/src/main/scala/sbt/Fork.scala +++ b/src/main/scala/sbt/Fork.scala @@ -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