[
https://jira.codehaus.org/browse/JBEHAVE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293196#comment-293196
]
Alexander Lehmann edited comment on JBEHAVE-729 at 3/2/12 6:12 AM:
-------------------------------------------------------------------
to reproduce the problem, run the project with mvn install package,
the resulting file jbehave_file_bug-0.0.1-SNAPSHOT-bin.zip is a stand-alone
java application that can run without any development environment installed (no
maven or javac)
when unpacking the zip to a new directory and running it as junit test, the
wrong pathname shows up
java -cp "lib/*" org.junit.runner.JUnitCore cx.lehman.jbehave.file_bug.Runner
was (Author: alexlehm):
to reproduce the problem, run the project with mvn install package,
the resulting file jbehave_file_bug-0.0.1-SNAPSHOT-bin.zip is a stand-alone
java application that can run without any development environment installed (no
maven or javac)
when unpacking the zip to a new directory and running it as junit test, the
wrong pathname shows up
java -cp "lib\*" org.junit.runner.JUnitCore cx.lehman.jbehave.file_bug.Runner
> When running jbehave unit tests from inside a jar, the current path is
> converted to file:/home/.../
> ---------------------------------------------------------------------------------------------------
>
> Key: JBEHAVE-729
> URL: https://jira.codehaus.org/browse/JBEHAVE-729
> Project: JBehave
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.6
> Environment: linux, windows
> Reporter: Alexander Lehmann
> Priority: Minor
> Attachments: jbehave-file-bug.zip
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email