From: John W. L. <Joh...@sa...> - 2010-12-28 21:07:05
|
The FAQ tells how you can dump the data before shutdown. -----Original Message----- From: Steven Christou [mailto:ste...@re...] Sent: Tuesday, December 28, 2010 2:50 PM To: John W. Lewis Cc: cob...@li... Subject: Re: [Cobertura-devel] Invoking Cobertura to report in source code I was thinking about a possible solution to this. I was wondering if it would be possible to write like a "flush" .bat file. When this .bat file is called, it will do an automatic flush of all the data, rather than expecting shutdown hooks to execute. If you run an application as a windows service, it will fail to execute any shutdown hooks(that's what's been happening with me at least). Either this, or right before a report file is generated it could do a flush of all the data, to make sure all the data is gathered. I might be talking over my head on this one but this is what I was thinking when instrumented items run currently: run application -> cobertura starts writing to .class files -> shutdown hook executes -> .class file writes to .ser file -> done On 7/7/2010 9:31 AM, John W. Lewis wrote: > Please see the last question in the FAQ. > > http://cobertura.sourceforge.net/faq.html > > > > -----Original Message----- > From: Steven Christou [mailto:ste...@re...] > Sent: Wednesday, July 07, 2010 9:51 AM > To: cob...@li... > Subject: [Cobertura-devel] Invoking Cobertura to report in source code > > Hello, > In the product I am working on, we are doing a Process.destroy() which > essentially destroys the JVM and does not allow for shutdown hooks to be > ran. Since no shutdown hooks can be ran, cobertura fails to run and > produce the results we want. I was wondering if there was a way we could > have it produce results right before we do the call to the > Process.destroy()? > Thanks! > Email Disclaimer: > http://www.redprairie.com/emaildisclaimer/ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |