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

Scripts don't work under Windows+GitBash #5

Open
fkleedorfer opened this issue Oct 15, 2019 · 2 comments
Open

Scripts don't work under Windows+GitBash #5

fkleedorfer opened this issue Oct 15, 2019 · 2 comments

Comments

@fkleedorfer
Copy link

When following the instructions in README.md under Windows using Git Bash, the scripts complain that the main class can't be found.

This is due to the way that classpath.txt is generated - with windows-style paths and ; as the separator. After changing these to unix-style paths and : as the separator, the scripts work from GitBash.

@tkuhn
Copy link
Member

tkuhn commented Oct 17, 2019

Not sure how this can be fixed. classpath.txt is generated by Maven and there doesn't seem to be an option to control the style of paths added.

Is it a simple regex style transformation that would have to be applied?

@fkleedorfer
Copy link
Author

This works for me:

cat classpath.txt | sed -e 's|\([A-Z]\):\\|/\1/|g' | sed -e 's|;|:|g' | sed -e 's|\\|/|g' > classpath.txt

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

No branches or pull requests

2 participants