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

Fix launcher jar paths not being quoted on Windows #1040

Merged
merged 1 commit into from
Oct 21, 2017

Conversation

dwickern
Copy link
Collaborator

@dwickern dwickern commented Oct 4, 2017

If you run the batch script from C:\Program Files\my-app\bin\my-app.bat you'll get an error like this:

Error: Unable to access jarfile C:\Program

#581 fixed the path being quoted in the bash script, but it still wasn't quoted in the bat script.

Before:

set "APP_MAIN_CLASS=-jar %APP_LIB_DIR%\app-1.0-SNAPSHOT-launcher.jar"

After:

set "APP_MAIN_CLASS=-jar "%APP_LIB_DIR%\app-1.0-SNAPSHOT-launcher.jar""

Fixes #913

@muuki88
Copy link
Contributor

muuki88 commented Oct 5, 2017

Thanks a lot for your work 😍
I'm currently on vacation and will review this after the 20.10

Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing and cleaning up ❤️
Looks a lot better now.

@@ -208,15 +208,6 @@ object BashStartScriptPlugin extends AutoPlugin {
script
}

private[this] def mainClassReplacement(mainClass: String): String = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up. The quoting is now done at a much better place :)

@muuki88 muuki88 merged commit b271834 into sbt:master Oct 21, 2017
@muuki88 muuki88 added the docker label Oct 21, 2017
@dwickern dwickern deleted the quote-launcher-jar branch October 21, 2017 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

universal:packageBin not working with spaces in path (windows / play application)
2 participants