From: Sinke, M. \(GE Healthcare\) <mar...@me...> - 2005-06-06 14:47:05
|
In an ultimate situation, I'd like to write <path id=3D"srcpath" dir=3D"src"> <includes name=3D"*.java"/> <excludes name=3D"**/test/*"/> </path> <cobertura-report destdir=3D"${coverage.html.dir}"> <sourcepath refid=3D"srcpath"/> </cobertura-report>=20 To avoid generating reports for test classes. This would automatically get you the possibility to include multiple source directories, as in: <path id=3D"srcpath" dir=3D"src"> <includes name=3D"*.java"/> <excludes name=3D"**/test/*"/> </path> <path id=3D"src-generatedpath" dir=3D"src-generated"> <includes name=3D"*.java"/> <excludes name=3D"**/test/*"/> </path> <path id=3D"allsrcpath"> <path refid=3D"srcpath"/> <path refid=3D"src-generatedpath"/> </path> <cobertura-report destdir=3D"${coverage.html.dir}"> <sourcepath refid=3D"srcpath"/> </cobertura-report> This way we only need one path reference by the way, because the path can refer to multiple sub-paths Mark Sinke. -----Original Message----- From: Seigel, James [mailto:Jam...@av...]=20 Sent: Monday, June 06, 2005 16:30 To: Sinke, Mark (GE Healthcare); Jeremy Thomerson; J. Rentrop Cc: cob...@li... Subject: RE: [Cobertura-devel] Multiple Source directories Well I have this one implemented... > <cobertura-report destdir=3D"${coverage.html.dir}"> > <sourcepath location=3D"${src.dir}"/> > <sourcepath location=3D"${test.dir}"/> > </cobertura-report> Where you can add as many sourcepath elements as you would like. I was modelling it after how you can specify <classpath> entries for <javac>. It will also support the srcDir attribute for legacy support. I just don't know if I am happy with the names sourcepath or location...but they aren't too too bad I guess. I could post some diffs tonight if you guys are interested.... Cheers James. -----Original Message----- From: Sinke, Mark (GE Healthcare) [mailto:mar...@me...] Sent: Monday, June 06, 2005 8:27 AM To: Seigel, James; Jeremy Thomerson; J. Rentrop Cc: cob...@li... Subject: RE: [Cobertura-devel] Multiple Source directories That would be the ultimate solution; for now, I'd die for just a way to mention multiple folders... Mark.=20 |