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 Windows support #24

Merged
merged 6 commits into from
Apr 3, 2022
Merged

Fix Windows support #24

merged 6 commits into from
Apr 3, 2022

Conversation

LumnitzF
Copy link
Contributor

Fixed the startup problem on Windows.
Basically it was a problem with the string replace, because the windows separator "" is interpreted as escape sequence in the replace. This fails because no character exists to be escaped.
E.g.:
System.out.println("asd.fgh".replaceAll("\\.", "\\")); fails
System.out.println("asd.fgh".replaceAll("\\.", "\\\\")); suceeds

In addition, I fixed a compile problem, and made the project buildable, without any additional configuration.

@seaside1
Copy link
Owner

seaside1 commented Apr 1, 2022

Thank you for you contribution I will check it out and get back soon.

@seaside1 seaside1 merged commit c757261 into seaside1:main Apr 3, 2022
seaside1 added a commit that referenced this pull request Apr 5, 2022
Fix Windows support

Former-commit-id: c757261
@seaside1
Copy link
Owner

seaside1 commented Apr 5, 2022

Since adding new config in JRuleConfig, could you verify that it is till working in Windows?

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.

2 participants