diff options
author | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2017-11-26 20:30:26 +0300 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-26 09:30:26 -0800 |
commit | acecf20f25da2b0eb777ff08c5fad8712d4c3c72 (patch) | |
tree | 282abd821e833683d5fcfae85625c47fdfddfe92 /core | |
parent | 39f38d4fd354ec70d4dcaf52a8804c8143b1c3f0 (diff) | |
download | mill-acecf20f25da2b0eb777ff08c5fad8712d4c3c72.tar.gz mill-acecf20f25da2b0eb777ff08c5fad8712d4c3c72.tar.bz2 mill-acecf20f25da2b0eb777ff08c5fad8712d4c3c72.zip |
fix console command in scala plugin; use subprocess for run (#21)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/mill/modules/Jvm.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/main/scala/mill/modules/Jvm.scala b/core/src/main/scala/mill/modules/Jvm.scala index d2833a33..d53c83ba 100644 --- a/core/src/main/scala/mill/modules/Jvm.scala +++ b/core/src/main/scala/mill/modules/Jvm.scala @@ -15,9 +15,10 @@ import scala.collection.mutable object Jvm { def subprocess(mainClass: String, - classPath: Seq[Path]) = { + classPath: Seq[Path], + options: Seq[String] = Seq.empty) = { import ammonite.ops.ImplicitWd._ - %("java", "-cp", classPath.mkString(":"), mainClass) + %("java", "-cp", classPath.mkString(":"), mainClass, options) } private def createManifest(mainClass: Option[String]) = { |