From: John W. L. <Joh...@sa...> - 2009-03-31 22:10:42
|
I just double-checked. The correct way to specify it is the way you had it before: <excludeClasses regex="com.myco.ssml.*" /> <excludeClasses regex="com.myco.regui.provisioning.*" /> What you are missing is that the <includeClasses> is required. So, add: <includeClasses regex=".*" /> And it should work. John -----Original Message----- From: dav...@re... [mailto:dav...@re...] Sent: Tuesday, March 31, 2009 6:01 PM To: cob...@li... Subject: Re: [Cobertura-devel] Why are excludedClasses still being included? Hi, I changed my target to include what you suggested ... <target name="cobertura" > <delete file="${cobertura.ser.file}" /> <delete dir="${instrumentedDir}"/> <mkdir dir="${instrumentedDir}"/> <cobertura-instrument todir="${instrumentedDir}" datafile="${cobertura.ser.file}"> <excludeClasses regex="com.myco.ssml.* .myco.regui.provisioning.*" /> <fileset dir="${webInfClassesDir}"> <include name="**/*.class" /> </fileset> </cobertura-instrument> </target> but alas, sadly the classes I want to exclude are showing up after I run my build. - Dave > -------Original Message------- > From: John W. Lewis <Joh...@sa...> > Subject: RE: [Cobertura-devel] Why are excludedClasses still being included? > Sent: Mar 31 '09 16:46 > > > Try excludeClasses regex="com.myco.ssml.* .myco.regui.provisioning.*" > > -----Original Message----- > From: dav...@re... [mailto:dav...@re...] > Sent: Tuesday, March 31, 2009 12:22 PM > To: cob...@li... > Subject: [Cobertura-devel] Why are excludedClasses still being included? > > Hi, > > I'm using the latest version of Cobertura with Eclipse 3.4 on WinXP and Ant 1.6. I'm trying to exclude some classes from being instrumented and I thought this was the way to do it ... > > <target name="cobertura" > > <delete file="${cobertura.ser.file}" /> > <delete dir="${instrumentedDir}"/> > <mkdir dir="${instrumentedDir}"/> > > <cobertura-instrument todir="${instrumentedDir}" datafile="${cobertura.ser.file}"> > <excludeClasses regex="com.myco.ssml.*" /> > <excludeClasses regex="com.myco.regui.provisioning.*" /> > <fileset dir="${webInfClassesDir}"> > <include name="**/*.class" /> > </fileset> > </cobertura-instrument> > </target> > > but when I open the instrumented directory, I'm still seeing classes that match the regular expression I put in "excludeClasses". Can you think of anything I might be overlooking? > > Thanks, - Dave > > ------------------------------------------------------------------------------ > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > ------------------------------------------------------------------------------ _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |