From: Mark D. <Mar...@sa...> - 2005-06-29 14:56:55
|
The static method = net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(= ) should cause the currently bufferred coverage data to be flushed to = cobertura.ser (or whichever file you've specified), if it helps -Mark=20 > -----Original Message----- > From: Mick Francis [mailto:mic...@li...]=20 > Sent: Wednesday, June 29, 2005 10:50 AM > To: Jared Richardson; je...@th...; Mark Doliner > Cc: cob...@li... > Subject: RE: [Cobertura-devel] Use with Applets >=20 > Hi Jared, > =20 > Thanks for the reply. > =20 > While I was downloading HotJava, I thought I'd try a 'hack'=20 > and put a System.exit(0) in the destroy() method of the=20 > Applet, and it worked! > Clearly this is no good for normal running, but I can enable=20 > the System.exit(0) in a properties file when it comes to test time. > =20 > I wonder if there's a method in the cobertura classes I can=20 > call to force the writing rather than it waiting for exit?=20 > That way I could just test for the existence of the class,=20 > and call the method if it's there - no properties file=20 > jiggery-pokery that way... > =20 > Regards, > =20 > Mick. >=20 > -----Original Message----- > From: Jared Richardson [mailto:Jar...@sa...] > Sent: 29 June 2005 15:35 > To: Mick Francis; je...@th...; Mark Doliner > Cc: cob...@li... > Subject: RE: [Cobertura-devel] Use with Applets > =09 > =09 > Try downloading HotJava from Sun. It has a much cleaner=20 > applet implementation and might get the ser file. I haven't=20 > tried this, but for coverage purposes, it shouldn't matter=20 > which browser you use, right? > =20 > http://java.sun.com/products/archive/hotjava/ > =20 > Jared >=20 > Ship It! is shipping! > http://www.jaredrichardson.net <http://www.jaredrichardson.net>=20 > http://www.pragmaticprogrammer.com/titles/prj/=20 > <http://www.pragmaticprogrammer.com/titles/prj/>=20 >=20 >=20 > ________________________________ >=20 > From:=20 > cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of Mick Francis > Sent: Wednesday, June 29, 2005 10:28 AM > To: 'je...@th...'; Mark Doliner > Cc: cob...@li... > Subject: RE: [Cobertura-devel] Use with Applets > =09 > =09 > Hi Jeremy, > =20 > Thanks for the reply. > =20 > The Applet runs in Internet Explorer. I've=20 > looked at the .class files in the .jar, and they all contain=20 > instrumentation. The fact that it works when I run the 'main'=20 > method (added for testing) from the command line (using=20 > exactly the same .jar file) implies to me that the problem=20 > lies somewhere in the Applet mechanism... > =20 > Mick. >=20 > -----Original=20 >=20 >=20 >=20 >=20 > This message has been scanned for viruses by MailController=20 > <http://www.mailcontroller.altohiway.com/> . >=20 >=20 |