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 Jaxb build issue with Apache Camel on Windows #22465

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

alexcheng1982
Copy link
Contributor

Fixes: #22395

The replace char in jaxb extension was /, and changed to File.separator in PR #13408. In fact, the paths of jaxb.index files are based on the file system provided by the archive file (ZipFileSystem), not real OS file system. That's why File.separator will fail on Windows.

Although the method getSeparator() of ZipFileSystem always returns /, it's better to avoid hard-coding the separator, so the value obtained from Path.getFileSystem().getSeparator() is used.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@gsmet gsmet merged commit a6d39ed into quarkusio:main Dec 22, 2021
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Dec 22, 2021
@gsmet gsmet modified the milestones: 2.7 - main, 2.6.1.Final Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: Error combining Jaxb and Apache Camel
2 participants