diff options
Diffstat (limited to 'main/src/mill/modules/Jvm.scala')
-rw-r--r-- | main/src/mill/modules/Jvm.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/mill/modules/Jvm.scala b/main/src/mill/modules/Jvm.scala index 8e9d443e..287dc624 100644 --- a/main/src/mill/modules/Jvm.scala +++ b/main/src/mill/modules/Jvm.scala @@ -355,7 +355,11 @@ object Jvm { jvmArgs: Seq[String]) (implicit ctx: Ctx.Dest)= { val isWin = scala.util.Properties.isWin - val outputPath = ctx.dest / "run" + val isBatch = isWin && + !(org.jline.utils.OSUtils.IS_CYGWIN + || org.jline.utils.OSUtils.IS_MINGW + || "MSYS" == System.getProperty("MSYSTEM")) + val outputPath = ctx.dest / (if (isBatch) "run.bat" else "run") val classPathStrs = classPath.map(_.toString) write(outputPath, launcherUniversalScript(mainClass, classPathStrs, classPathStrs, jvmArgs)) |