[ 
http://jira.codehaus.org/browse/MJNCSS-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125777
 ] 

takanorig edited comment on MJNCSS-15 at 3/2/08 7:29 AM:
--------------------------------------------------------

I am using javancss-maven-plugin 2.0-beta-2.

I crate the patch for it.
--->NcssReportMojo_diff.txt

Even if JavaNCSS throw an exception,
it will be forced to output the report.

I crate a new option 'failOnError'.


When the source encoding is UTF-8,
it is fail to output the report.
I think it is the JavaNCSS problem.

But, even in such cases,
JavaNCSS will output the report(xml).

So, even if JavaNCSS throw an exception,
I want to get the report.


Please marge this patch.


      was (Author: takanorig):
    I am using javancss-maven-plugin 2.0-beta-2.

I crate the patch for it.

Even if JavaNCSS throw an exception,
it will be forced to output the report.

I crate a new option 'failOnError'.


When the source encoding is UTF-8,
it is fail to output the report.
I think it is the JavaNCSS problem.

But, even in such cases,
JavaNCSS will output the report(xml).

So, even if JavaNCSS throw an exception,
I want to get the report.


Please marge this patch.

  
> UTF-8 Support
> -------------
>
>                 Key: MJNCSS-15
>                 URL: http://jira.codehaus.org/browse/MJNCSS-15
>             Project: Maven 2.x JavaNCSS Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-2
>         Environment: Linux, Java 1.6, Maven 2.0.6
>            Reporter: Petr Ferschmann
>            Assignee: Jean-Laurent de Morlhon
>         Attachments: NcssReportMojo_diff.txt
>
>
> I am using czech language in sources. When I run mvn javancss:report I got 
> this:
> [INFO] [javancss:report]
> TokenMgrError in 
> /home/fers/prj/exekutori/pes/shared/tools/tools/src/main/java/cz/softeu/tools/hibernate/ServletPrinter.java
> Lexical error at line 120, column 34.  Encountered: "\r" (13), after : "\"Po"
> Caused by: java.lang.Exception: javancss.TokenMgrError: Lexical error at line 
> 120, column 34.  Encountered: "\r" (13), after : "\"Po"
>         ... 23 more
> Caused by: javancss.TokenMgrError: Lexical error at line 120, column 34.  
> Encountered: "\r" (13), after : "\"Po"
>         at 
> javancss.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:1781)
>         at javancss.JavaParser.jj_ntk(JavaParser.java:11397)
>         at javancss.JavaParser.VariableInitializer(JavaParser.java:1585)
>         at javancss.JavaParser.VariableDeclarator(JavaParser.java:1546)
>         at javancss.JavaParser.LocalVariableDeclaration(JavaParser.java:3771)
>         at javancss.JavaParser.BlockStatement(JavaParser.java:3691)
>         at javancss.JavaParser.Block(JavaParser.java:3684)
>         at javancss.JavaParser.MethodDeclaration(JavaParser.java:1846)
>         at javancss.JavaParser.ClassBodyDeclaration(JavaParser.java:975)
>         at javancss.JavaParser.ClassBody(JavaParser.java:846)
>         at javancss.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:775)
>         at javancss.JavaParser.ClassDeclaration(JavaParser.java:706)
>         at javancss.JavaParser.TypeDeclaration(JavaParser.java:567)
>         at javancss.JavaParser.CompilationUnit(JavaParser.java:300)
>         at javancss.Javancss._measureSource(Javancss.java:190)
>         at javancss.Javancss._measureSource(Javancss.java:155)
>         at javancss.Javancss._measureFiles(Javancss.java:282)
>         at javancss.Javancss._measureRoot(Javancss.java:308)
>         at javancss.Javancss.<init>(Javancss.java:604)
>         at 
> org.codehaus.mojo.javancss.NcssExecuter.execute(NcssExecuter.java:90)
>         ... 22 more
> The file contains:
>                 String text = "Po&#269;et záznam&#367;: <input type=\"text\" 
> name=\"max\" size=\"30\" value=\"" + m + "\" />";
> (non ascii characters with UTF-8)

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to