From: John W. L. <Joh...@sa...> - 2006-09-28 13:47:48
|
=20 If you want to change the name of the cobertura file, you need to pass = in the new name to tomcat using the net.sourceforge.cobertura.datafile = property.=20 ________________________________ From: cob...@li... = [mailto:cob...@li...] On Behalf Of = Woj...@wi... Sent: Thursday, September 28, 2006 8:51 AM To: cob...@li... Subject: [Cobertura-devel] Using datafile attribute Hi,=20 In my ant build fifle I want to use datafile attribute, like that:=20 <cobertura-instrument todir=3D"${dist.dir}/WEB-INF/instrumented" = datafile=3D"${dist.dir}/WEB-INF/cobertura.xforms.ser" >=20 <ignore = regex=3D"org.apache.log4j.*" />=20 <fileset = dir=3D"${dist.dir}/WEB-INF/classes">=20 <include = name=3D"**/*.class" />=20 <exclude = name=3D"**/*Test*.class" />=20 </fileset>=20 </cobertura-instrument>=20 As the result cobertura creates file cobertura.xforms.ser - that's cool. = But when I deploy my app to Tomcat and replace original class files with = classes instrumented by cobertura and copy cobertura.xforms.ser to the = bin folder in [TOMCAT_HOME] than after starting Tomcat cobertura creates = it's own file cobertura.ser and puts all informations about coverage in = this file instead of cobertura.xforms.ser.=20 Can anyone tell me why?=20 cheers,=20 Wojtek |