From: John W. L. <Joh...@sa...> - 2011-07-26 14:58:10
|
There is an easy way, but unfortunately, it is not well documented. First, take a look at how you would do it in Ant since the documentation for Ant is better. Pay attention to the "excludeClasses" pattern/element: http://cobertura.sourceforge.net/anttaskreference.html If you want to use the command line, the equivalent functionality can be done by passing the regex with the -excludeClasses parameter. If you point to the jar, Cobertura will instrument it for you without you having to extract it. You can either have it make an instrumented copy by specifying a destination, or have it instrument the jar in place by not specifying a destination. John -----Original Message----- From: Artur Nikitczuk [mailto:pty...@gm...] Sent: Tuesday, July 26, 2011 5:19 AM To: cob...@li... Subject: [Cobertura-devel] exclude classes from jar Hi. Is there a possibility to exclude classes from jar, and copy unchanged from original jar?? Now I have to extract classes from jar, then do cobertura-instrument on this classes with <exclude name="my/package/*.class" /> Then I'm copying original clases, which I excluded, to a directory witch changed classes, and do jar command. Is there a "easy" way in cobertura to do this, rather than writing a code in ant? thanks Artur ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |