Current path is converted to file:/home/.../ when accessing codeLocationFromClass from inside a jar
Description
I have tried to build a complete jbehave test into a jar file by maven assembly and then to run the test on another machine that doesn't have the dev system installed.
e.g. java -cp "lib*" org.junit.runner.JUnitCore de.vodafone.jbehave.rrd.runner.Runner
the reporter tries to create the files in a path that contains $PWD/file:/$PWD/lib/jbehave/view, so I assume the path is converted from the jar location to an url which then is used as a regular path, this doesn't work on Windows or creates a directory file: in linux.
(In Linux it is possible to work around this by creating a symlink from / to file
I'll try to attach an example project if I can narrow this down
I have tried to build a complete jbehave test into a jar file by maven assembly and then to run the test on another machine that doesn't have the dev system installed.
e.g. java -cp "lib*" org.junit.runner.JUnitCore de.vodafone.jbehave.rrd.runner.Runner
the reporter tries to create the files in a path that contains $PWD/file:/$PWD/lib/jbehave/view, so I assume the path is converted from the jar location to an url which then is used as a regular path, this doesn't work on Windows or creates a directory file: in linux.
(In Linux it is possible to work around this by creating a symlink from / to file
I'll try to attach an example project if I can narrow this down