When using 4.0-RC1 branch coverage I get a ton of errors from
Cobertura when it's doing the complexity calculations (output below
hundreds of times).  Is this because the complexity calculations do
not work on flex code?  Can the calculations be disabled?  This does
not prevent the coverage information from being created correctly, it
just results in a lot of output when building.


net.sourceforge.cobertura.javancss.parser.ParseException: Encountered
" "{" "{ "" at line 24, column 1.
Was expecting:
    ";" ...

        at
net.sourceforge.cobertura.javancss.parser.JavaParser.generateParseException(JavaParser.java:
10296)
        at
net.sourceforge.cobertura.javancss.parser.JavaParser.jj_consume_token(JavaParser.java:
10172)
        at
net.sourceforge.cobertura.javancss.parser.JavaParser.PackageDeclaration(JavaParser.java:
558)
        at
net.sourceforge.cobertura.javancss.parser.JavaParser.CompilationUnit(JavaParser.java:
312)
        at
net.sourceforge.cobertura.javancss.parser.JavaParser.parse(JavaParser.java:
137)
        at
net.sourceforge.cobertura.javancss.Javancss._measureSource(Javancss.java:
256)
        at
net.sourceforge.cobertura.javancss.Javancss._measureRoot(Javancss.java:
339)
        at
net.sourceforge.cobertura.javancss.Javancss.<init>(Javancss.java:419)
        at
net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSource(ComplexityCalculator.java:
102)
        at
net.sourceforge.cobertura.reporting.ComplexityCalculator.getAccumlatedCCNForSingleFile(ComplexityCalculator.java:
139)
        at
net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForSourceFileNameInternal(ComplexityCalculator.java:
224)
        at
net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForPackageInternal(ComplexityCalculator.java:
194)
        at
net.sourceforge.cobertura.reporting.ComplexityCalculator.getCCNForProject(ComplexityCalculator.java:
164)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.generateTableRowForTotal(HTMLReport.java:
704)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverview(HTMLReport.java:
336)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverviews(HTMLReport.java:
271)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.<init>(HTMLReport.java:
96)
        at
org.sonatype.flexmojos.coverage.cobertura.CoberturaCoverageReport.generateReport(CoberturaCoverageReport.java:
94)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.run(TestRunMojo.java:
341)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody0(TestRunMojo.java:
283)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody1$advice(TestRunMojo.java:
24)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody2(TestRunMojo.java:
270)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody3$advice(TestRunMojo.java:
17)
        at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute(TestRunMojo.java:
1)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
WARN   getAccumlatedCCNForSource, JavaNCSS got an error while parsing
the java file {removed file names .as}
ParseException in STDIN
Last useful checkpoint: ""
Encountered " "{" "{ "" at line 24, column 1.
Was expecting:
    ";" ...

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to