trustyuri / trustyuri-java

Trusty URI implementation for Java
MIT License
18 stars 8 forks source link

Scripts don't work under Windows+GitBash #5

Open fkleedorfer opened 4 years ago

fkleedorfer commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

This works for me:

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