diff options
author | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2017-12-09 17:43:57 +0300 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-09 06:43:57 -0800 |
commit | bcbc6d2c36bfb4a3dfaa0f5572e2914fec69297d (patch) | |
tree | 4cf75647b7ac22167ec03e0ef2d4540ecdf9a2fb /core/src/main | |
parent | a583f70966c6d5b0fbda0c9989803220b7292ac9 (diff) | |
download | mill-bcbc6d2c36bfb4a3dfaa0f5572e2914fec69297d.tar.gz mill-bcbc6d2c36bfb4a3dfaa0f5572e2914fec69297d.tar.bz2 mill-bcbc6d2c36bfb4a3dfaa0f5572e2914fec69297d.zip |
fix console command; add interactiveSubprocess in Jvm (#52)
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/mill/modules/Jvm.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/main/scala/mill/modules/Jvm.scala b/core/src/main/scala/mill/modules/Jvm.scala index ddc8b427..84e75510 100644 --- a/core/src/main/scala/mill/modules/Jvm.scala +++ b/core/src/main/scala/mill/modules/Jvm.scala @@ -27,6 +27,14 @@ object Jvm { } allJars } + + def interactiveSubprocess(mainClass: String, + classPath: Seq[Path], + options: Seq[String] = Seq.empty): Unit = { + import ammonite.ops.ImplicitWd._ + %("java", "-cp", classPath.mkString(":"), mainClass, options) + } + def subprocess(mainClass: String, classPath: Seq[Path], jvmOptions: Seq[String] = Seq.empty, |