default report location determined by location of jbehave jar
-------------------------------------------------------------

                 Key: JBEHAVE-309
                 URL: http://jira.codehaus.org/browse/JBEHAVE-309
             Project: JBehave
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.0
         Environment: all
            Reporter: Brian Repko


StoryReporterBuilder has an instance field outputLocationClass which is, by 
default, defined to be the StoryReporterBuilder.class object.  This is then 
passed into a StoryLocation object as part of a FilePrintStreamFactory 
constructor.  StoryLocation uses the class object to convert to a URL.  Thus we 
are using the location of jar as the default reporting location.

StoryLocation should just take a URL in its constructor, not a class.

StoryReporterBuilder should have either use the outputDirectory.toURI().toURL() 
as the URL to pass in or setup a default of new File(".") (current working 
directory) in order to pass into StoryLocation.  outputLocationClass should be 
removed.

-- 
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