jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JBehave
  • JBEHAVE-277

Reports are outputted to $ANT_HOME/lib instead of target dir

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.5, 2.5.1
  • Fix Version/s: 2.5.2
  • Component/s: Ant Tasks
  • Labels:
    None

Description

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

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mauro Talevi added a comment - 24/Apr/10 8:19 AM

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.

Show
Mauro Talevi added a comment - 24/Apr/10 8:19 AM 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.
Hide
Permalink
Mauro Talevi added a comment - 01/May/10 5:52 AM

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

Show
Mauro Talevi added a comment - 01/May/10 5:52 AM The ScenarioReporterBuilder now requires explicit invocation of withDefaultFormats() after the setting of the output*() methods to pick up the overridden output specification.

People

  • Assignee:
    Mauro Talevi
    Reporter:
    Mauro Talevi
Vote (0)
Watch (0)

Dates

  • Created:
    24/Apr/10 6:13 AM
    Updated:
    01/May/10 5:53 AM
    Resolved:
    01/May/10 5:53 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.