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 path format for fake.class.path on Windows #488

Merged
merged 1 commit into from
Aug 12, 2016
Merged

Fix path format for fake.class.path on Windows #488

merged 1 commit into from
Aug 12, 2016

Conversation

oahner
Copy link
Contributor

@oahner oahner commented Aug 3, 2016

The fake.class.path env variable is currently populated in a way that
leaves an extraneous leading forward slash character at the start of all
path components on Windows, so that:

"C:\Program Files\Java\jdk1.8.0_77\jre\lib\ext\access-bridge-64.jar"

Ends up being represented as:

"/C:/Program Files/Java/jdk1.8.0_77/jre/lib/ext/access-bridge-64.jar"

This patch uses java.nio.file.Paths to properly convert each component
of the classpath to a valid system-specific path before using it to
populate the fake.class.path variable.

The `fake.class.path` env variable is currently populated in a way that
leaves an extraneous leading forward slash character at the start of all
path components on Windows, so that:

  "C:\\Program Files\\Java\\jdk1.8.0_77\\jre\\lib\\ext\\access-bridge-64.jar"

Ends up being represented as:

  "/C:/Program Files/Java/jdk1.8.0_77/jre/lib/ext/access-bridge-64.jar"

This patch uses `java.nio.file.Paths` to properly convert each component
of the classpath to a valid system-specific path before using it to
populate the `fake.class.path` variable.
@micha micha added this to the 2.7.0 milestone Aug 12, 2016
@micha micha added the Bug label Aug 12, 2016
@micha
Copy link
Contributor

micha commented Aug 12, 2016

Looks great, thanks! 👍

@micha micha merged commit bb7d450 into boot-clj:master Aug 12, 2016
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.

None yet

2 participants