diff options
author | Robby <robby@santoslab.org> | 2018-03-20 06:50:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-20 06:50:23 -0500 |
commit | 672642e4694088c2c0aee6e408de079318bcd4db (patch) | |
tree | d2dc8ac4fed59dc825e58098486727270634bb47 /scalalib/src | |
parent | 4fea16eaf227a4b0bb729e9f1ab7b45ed0d0a0f0 (diff) | |
download | mill-672642e4694088c2c0aee6e408de079318bcd4db.tar.gz mill-672642e4694088c2c0aee6e408de079318bcd4db.tar.bz2 mill-672642e4694088c2c0aee6e408de079318bcd4db.zip |
Batch (.bat) file generation for assembly, launcher, and release (#243)
Diffstat (limited to 'scalalib/src')
-rw-r--r-- | scalalib/src/mill/scalalib/ScalaModule.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scalalib/src/mill/scalalib/ScalaModule.scala b/scalalib/src/mill/scalalib/ScalaModule.scala index bf68218c..0fe7e3dc 100644 --- a/scalalib/src/mill/scalalib/ScalaModule.scala +++ b/scalalib/src/mill/scalalib/ScalaModule.scala @@ -126,9 +126,11 @@ trait ScalaModule extends mill.Module with TaskModule { outer => mainClass() match{ case None => "" case Some(cls) => + val isWin = scala.util.Properties.isWin mill.modules.Jvm.launcherShellScript( + isWin, cls, - Agg("$0"), + Agg(if (isWin) "%~dp0%~nx0" else "$0"), forkArgs() ) } |