JBehave
  1. JBehave
  2. JBEHAVE-309

default report location determined by location of jbehave jar

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      all
    • Number of attachments :
      0

      Description

      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.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 3.0 [ 16302 ]
        Paul Hammant made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Paul Hammant [ paul ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Mauro Talevi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Brian Repko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: