Meaning of ForkScala.fork arguments?

17 views
Skip to first unread message

adelbertc

unread,
Oct 14, 2012, 7:12:16 PM10/14/12
to simple-b...@googlegroups.com
Hi all,

So I'm looking at this page: http://harrah.github.com/xsbt/latest/sxr/Fork.scala.html#2119371

and am trying to use the .fork() method, but am confused as to what each of the arguments mean.. is there documentation somewhere that explains it and/or can someone explain it to me please?

javaHome: Option[File], jvmOptions: Seq[String], scalaJars: Iterable[File], arguments: Seq[String], workingDirectory: Option[File], connectInput: Boolean, outputStrategy: OutputStrategy

My understandings (most likely wrong):

javaHome = ???
jvmOptions = arguments when invoking the JVM
scalaJars = where scala-library.jar is located? Isn't that handled by SBT?
arguments = is this where we specify the class we want to invoke along with the arguments? Like if I wanted foo.Bar and pass in "localhost" I would do arguments = Seq("foo.Bar", "localhost") ?
workingDirectory = ???
connectInput = ???
outputStrategy = where the output is directed to?

Thanks!
Reply all
Reply to author
Forward
0 new messages