Sounds like you want an "exclude packages" option (or maybe granular down to the class level) like JavaDoc.
Paul On Fri, Oct 23, 2009 at 10:52 AM, Wayne Fay <wayne...@gmail.com> wrote: > As always... if you do hack the source code, make it configurable and > donate the changes back to Cobertura so it can be considered for > inclusion in a future release. This sounds like a potentially useful > feature for a number of organizations. > > Wayne > > On Fri, Oct 23, 2009 at 9:41 AM, Nick Stolwijk <nick.stolw...@gmail.com> > wrote: >> I think the changes to cobertura are not that much. And building and >> deploying your own version of the cobertura-maven-plugin isn't hard either. >> Take a look at cobertura's source [1], especially >> >> generateSourceFile(SourceFileData sourceFileData) >> >> [1]http://cobertura.svn.sourceforge.net/viewvc/cobertura/tags/v1_9_3/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java?revision=687&view=markup >> >> With regards, >> >> >> Nick Stolwijk >> ~Java Developer~ >> >> IPROFS BV. >> Claus Sluterweg 125 >> 2012 WS Haarlem >> http://www.iprofs.nl >> >> >> On Fri, Oct 23, 2009 at 4:29 PM, Edelson, Justin < >> justin.edel...@mtvstaff.com> wrote: >> >>> That might work. But my way was easier :) >>> >>> And unless this changed recently, the cobertura report outputs the >>> source code files in the cobertura directory, not a subdir. I'm assuming >>> the OP has already shut off xref reports and other things which contain >>> source. >>> >>> -----Original Message----- >>> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] >>> Sent: Friday, October 23, 2009 10:26 AM >>> To: Maven Users List >>> Subject: Re: [cobertura] do not publish source code >>> >>> or another technique would be to overwrite every html file that is in a >>> sub-dir with a simple html saying that the source code is >>> confidential... >>> that way your links will still work ;-) >>> >>> 2009/10/23 Edelson, Justin <justin.edel...@mtvstaff.com> >>> >>> > Without an extensive amount of work, I suspect you could bind a custom >>> >>> > execution of the clean plugin in the post-site phase to remove all the >>> >>> > html files from target/site/cobertura EXCEPT for index.html, >>> > frame-packages.html, frame-summary.html, frame-sourcefiles.html, and >>> > help.html. This would lead to broken links. Not having broken links >>> > would likely involve modifying cobertura and/or the plugin, so I'd >>> > suggest at least trying the clean option and see how far that takes >>> you. >>> > >>> > Justin >>> > >>> > -----Original Message----- >>> > From: Daniele Dellafiore [mailto:ilde...@gmail.com] >>> > Sent: Friday, October 23, 2009 10:04 AM >>> > To: Maven Users List >>> > Subject: [cobertura] do not publish source code >>> > >>> > Hi everyone. >>> > >>> > I want to publish code coverage for my project on a public site but >>> > some projects are not open source. How can I avoid cobertura to >>> > publish the source code for each class leaving all the coverage >>> reports? >>> > >>> > Thanks.. >>> > >>> > -- >>> > Daniele Dellafiore >>> > http://ildella.net >>> > http://twitter.com/ildella >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> > For additional commands, e-mail: users-h...@maven.apache.org >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> > For additional commands, e-mail: users-h...@maven.apache.org >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org