Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Windows and Java 11 #9

Merged
merged 18 commits into from
Sep 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stop using manifest jar on Windows.
  • Loading branch information
Olafur Pall Geirsson committed Sep 8, 2020
commit 15bccfa477fbaeb4cca16c864703583d2474ab18
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