Skip to content

Commit

Permalink
Stop using manifest jar on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Sep 8, 2020
1 parent c472288 commit 15bccfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/src/main/scala/sbtnativeimage/NativeImagePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,15 @@ object NativeImagePlugin extends AutoPlugin {
val manifest = target.in(NativeImageInternal).value / "manifest.jar"
manifest.getParentFile().mkdirs()
createManifestJar(manifest, cp)
val nativeClasspath =
if (Properties.isWin) cp.mkString(File.pathSeparator)
else manifest.absolutePath

// Assemble native-image argument list.
val command = mutable.ListBuffer.empty[String]
command ++= nativeImageCommand.value
command += "-cp"
command += manifest.absolutePath
command += nativeClasspath
command ++= nativeImageOptions.value
command += main.getOrElse(
throw new MessageOnlyException(
Expand Down

0 comments on commit 15bccfa

Please sign in to comment.