diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/mill/modules/Jvm.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/mill/modules/Jvm.scala b/main/src/mill/modules/Jvm.scala index 9e22f614..d32d3612 100644 --- a/main/src/mill/modules/Jvm.scala +++ b/main/src/mill/modules/Jvm.scala @@ -342,12 +342,14 @@ object Jvm { def launcherUniversalScript(mainClass: String, shellClassPath: Agg[String], cmdClassPath: Agg[String], - jvmArgs: Seq[String]) = { + jvmArgs: Seq[String], + shebang: Boolean = false) = { universalScript( shellCommands = s"""exec java ${jvmArgs.mkString(" ")} $$JAVA_OPTS -cp "${shellClassPath.mkString(":")}" $mainClass "$$@"""", cmdCommands = s"""java ${jvmArgs.mkString(" ")} %JAVA_OPTS% -cp "${cmdClassPath.mkString(";")}" $mainClass %*""", + shebang = shebang ) } def createLauncher(mainClass: String, |