[ 
http://jira.codehaus.org/browse/JBEHAVE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219610#action_219610
 ] 

Mauro Talevi commented on JBEHAVE-277:
--------------------------------------

The ScenarioReporterBuilder now requires explicit invocation of 
withDefaultFormats() after the setting of the output*() methods to pick up the 
overridden output specification. 

> 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


Reply via email to