You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/03/31 07:29:57 UTC

[jira] Commented: (MPJCOVERAGE-6) coverage.xml contains invalid content when RMIC'd files are analyzed

The following comment has been added to this issue:

     Author: Emmanuel Venisse
    Created: Wed, 31 Mar 2004 12:28 AM
       Body:
Can you send me a little project sample that generate the error?
Thanks
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJCOVERAGE-6&page=comments#action_18026

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJCOVERAGE-6

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJCOVERAGE-6
    Summary: coverage.xml contains invalid content when RMIC'd files are analyzed
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: 30 minutes
 Time Spent: Unknown
  Remaining: 30 minutes

    Project: maven-jcoverage-plugin
   Fix Fors:
             1.0.4
   Versions:
             1.0.3

   Assignee: Emmanuel Venisse
   Reporter: Mark Langley

    Created: Tue, 30 Mar 2004 5:31 PM
    Updated: Wed, 31 Mar 2004 12:28 AM
Environment: Windows XP, Maven 1.0-rc2, maven-jcoverage-plugin-1.0.3

Description:
My project uses RMIC in a javac:compile postGoal to create com.fubar.SomeClass_Stub from com.fubar.SomeClass. SomeClass_Stub has no source file, so the coverage.xml file contains:

  <class name="com.fubar.SomeClass_Stub">
    <file name="com/fubar/<Unknown>"/>
    ...

The embedded angle brackets are not valid XML, and cause an XmlPullParserException during jcoverage:html-report.

To correct this, I have modified plugin.jelly to run ant:replace, substituting "RMICSourceUnknown.java" for "<Unknown>" in coverage.xml.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org