-
Notifications
You must be signed in to change notification settings - Fork 38
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
JAR has OS specific path separators #16
Comments
Seems, the follwing lines of code from CompileMojo, line 132, leads to the problem. On Windows, the resulting "name" conatins backslashes, not slashes. :-\
I suggest to replace "File.separator"s always by slashes. |
The following line does the trick, as expected:
|
It would probably be safer to use Java's built-in path comparison operations. |
@Lynorics would you be able to open a pull request resolving this? |
Hey there! 👋 Thanks for opening an issue with jspc-maven-plugin. 👍 🙇♂️ Thanks again for contributing to the jspc-maven-plugin! ✨ |
The temporary JAR created by jspc (or the FileUtilJar) seems to embed (or return) OS specific path separators.
In Class TldLocations, line 439 there is the following condition:
if (entryName.startsWith("META-INF/") &&
In my case entryName is "META-INF\blueprint.tld"
For this, the condition will never be true, the jspc breaks with an exception. :-(
Is there a workaround/solution to solve the problem?
I'm running on Windows Vista.
The text was updated successfully, but these errors were encountered: