hmm, indeed... :) Thanks for pointing that out. But is it a bug or a deliberate behavior? I could really use generation of both xml and html reports. My use case is quite common after all: I want xml reports for Sonar on one hand. On the other hand, I don't want to build the full sonar artillery just to see my coverage rate, hence I enjoy checking the html reports.
Regards On Jan 30, 4:41 pm, Steve <[email protected]> wrote: > Hi, > > it is fixed in the 4.1-beta (I have test it) > It seems there is a bug in the 4.0-RC2, > take a look here > :http://grepcode.com/file/repo1.maven.org/maven2/org.sonatype.flexmojo..., > and notice this : > 86 try > 87 { > 88 File coverageReportDestinationDir = > request.getReportDestinationDir(); > 89 coverageReportDestinationDir.mkdirs(); > 90 > 91 List<String> format = request.getFormats(); > 92 if ( format.contains( "html" ) ) > 93 { > 94 String coverageReportEncoding = > request.getReportEncoding(); > 95 if > ( StringUtils.isEmpty( coverageReportEncoding ) ) > 96 { > 97 coverageReportEncoding = "UTF-8"; > 98 } > 99 new HTMLReport( coverageProjectData, > coverageReportDestinationDir, finder, complexity, > 100 coverageReportEncoding ); > 101 } > 102 else if ( format.contains( "xml" ) ) > 103 { > 104 new XMLReport( coverageProjectData, > coverageReportDestinationDir, finder, complexity ); > 105 } > 106 else if ( format.contains( "summaryXml" ) ) > 107 { > 108 new SummaryXMLReport( coverageProjectData, > coverageReportDestinationDir, finder, complexity ); > 109 } > 110 } > > Regards > > On Jan 26, 5:27 am, htulipe <[email protected]> wrote: > > > > > > > > > Hi all, > > > I can't get Flexmojo 4.0-RC2 to generate both XML and HTML cobertura > > reports. Is this a known fact? > > > Here is a extract of my pom.xml: > > > <configuration> > > <coverage>true</coverage> > > <coverageOutputDirectory>target\site\cobertura</ > > coverageOutputDirectory> > > <coverageReportFormat> > > <param>xml</param> > > <param>html</param> > > <coverageReportFormat> > > </configuration> > > > In this situation only XML is generated, (same if I invert param tags > > order). > > > Any help woul be great. Thanks and keep up the good work. > > > Regards -- 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/
