You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2003/01/10 08:39:19 UTC

[maven-bug] Closed: (MAVEN-182) Improving Tasklist plugin parser - reducing sensitivity to javadoc quality

Message:

   The following issue has been closed.

   Resolver: Jason van Zyl
       Date: Fri, 10 Jan 2003 1:39 AM

In maven HEAD Qdox is used which has a robust parser.
---------------------------------------------------------------------
View the issue:

  http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-182


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-182
    Summary: Improving Tasklist plugin parser - reducing sensitivity to javadoc quality
       Type: Improvement

     Status: Closed
   Priority: Minor
 Resolution: FIXED

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None
   Versions:
             1.0-beta-7

   Assignee: Jason van Zyl
   Reporter: Nick Minutello

    Created: Mon, 30 Dec 2002 5:04 PM
    Updated: Fri, 10 Jan 2003 1:39 AM

Description:

Is it possible to improve the robustness of the tasklist generator - reduce its sensitivity and improve the error recovery?

It seems that the tasklist parser is very sensitive to formatting of the javadoc comments.

e.g. If you have 
/**
 *@task
 */

Instead of 

/**
 * @task
 */

It will give the error:
Non-fatal error while parsing file: E:\Projects\<snip>\RecordUpdateListener.java
[DEBUG] org.apache.maven.java.parser.ParseException: Encountered "@" at line 19, column 7.
Was expecting:
    <TEXT> ...

...and then parse no more of the document.

If the java source file starts with:

/**
 * Created by IntelliJ IDEA.
 * User: L_Fischer
 * Date: Oct 29, 2002
 * Time: 4:27:39 PM
 * To change this template use Options | File Templates.
 */

(ie a Javadoc comment), then it fails with the following error:

Non-fatal error while parsing file: E:\temp\<snip>\ChainListenerCallback.java
[DEBUG] org.apache.maven.java.parser.ParseException: Encountered "package" at line 8, column 1.
Was expecting one of:
    "abstract" ...
    "interface" ...
    "public" ...
    "strictfp" ...
    ";" ...
    "@" ...
    "*" ...
    <TEXT> ...
    "final" ...
    "class" ...

If the javadoc should contain a "**", the again, it will fail...


Regards,
Nick


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.werken.com/Administrators.jspa

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