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)
  • Maven Surefire
  • SUREFIRE-179

Add support for specifying and configuring java instrumentation agents for tests being launched in a new jvm

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0 (2.2 plugin)
  • Fix Version/s: Backlog
  • Component/s: process forking
  • Labels:
    None
  • Testcase included:
    yes

Description

JDK 1.5 added a new feature for instrumenting byte code in Java (See java.lang.Instrument for more information). The attached patch adds support for configuration of java agents and agent dependencies on the surefire command line, when forking is enabled. The code used to configure the jvm argLine does not use any JDK 1.5 features. Test cases are included.

The java.lang.Instrument approach has a few advantages:
1) no stale instrumented classes
2) no need for forked lifecycles and hacks to get the instrumented classes on the classpath
3) any class that is loaded into the jvm can be instrumented

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    javaagent-support.patch
    07/Oct/06 6:37 PM
    15 kB
    Walco van Loon

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. SUREFIRE-55 Incorrect splitting of command line arguments in ForkConfiguration

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Walco van Loon
Vote (4)
Watch (5)

Dates

  • Created:
    07/Oct/06 6:37 PM
    Updated:
    25/Dec/07 3:28 PM
  • 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.