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

Escape spaces in paths in directories in the classpath in the generated Manifest file #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tresat
Copy link

@tresat tresat commented May 28, 2019

I had been using this plugin very successfully to work around Windows path length limitations in my Kotlin project, and was surprised when a clean checkout of my project failed to run on a new machine. Eventually, I cracked open the mfjars classpath jar which was being used to launch the program and looked at the Class-Path in the Manifest.MF file. I noticed there were spaces in the paths (the user name on this new machine is "FirstName LastName") which were causing the issue.

I did some testing with a local build of this plugin, and if it converts any spaces in the paths to the URL space escape charactor %20 it will fix this issue. I also bumped the version to 0.2.0 to reflect the change.

Can you please merge and publish? Thank you for all your work on this, it was very useful to find such an easy solution for that issue.

…st file with %20 escape chars, so that directories with spaces in the names do not cause runtime failures.
@tresat tresat changed the title Replace paths in directories in the classpath in the generated Manife… Escape spaces in paths in directories in the classpath in the generated Manifest file May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant