[ http://jira.codehaus.org/browse/JBEHAVE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218834#action_218834 ]
Mauro Talevi commented on JBEHAVE-277: -------------------------------------- Allowed configuration of output directory in builder to be absolute, so it can bypass the class source code location. Updated the TraderScenario configuration to use the absolute directory. The Ant build.xml in the trader example has been used to verify the ability to run scenario reports and render them. > Reports are outputted to $ANT_HOME/lib instead of target dir > ------------------------------------------------------------- > > Key: JBEHAVE-277 > URL: http://jira.codehaus.org/browse/JBEHAVE-277 > Project: JBehave > Issue Type: Bug > Components: Ant extension > Affects Versions: 2.5, 2.5.1 > Reporter: Mauro Talevi > Assignee: Mauro Talevi > Priority: Critical > Fix For: 2.5.2 > > > As reported by Ben Sullivan, when running scenarios via Ant CLI, the reports > are being outputted to $ANT_HOME/lib instead of target dir. > Problem stems from the fact that the FilePrintStreamFactory uses the > scenarioClass.getProtectionDomain().getCodeSource().getLocation().getFile(); > to identify the output dir. The classloading of Ant by default must be > setting the code source location to $ANT_HOME/lib. > Need to find a way to configure Ant classloading or allow explicit setting of > the output directory (currently only the entire output file of the print > stream is configurable, which makes it pretty useless for running with > multiple scenarios). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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