From: Jeremy T. <jth...@us...> - 2005-11-23 15:39:58
|
Kris, It looks like you have the wrong value in cobertura-report for "srcdir". This value should point to the source code, the same folder that you compil= e from. I hope this helps. Jeremy Thomerson On 11/23/05, Kovath, Krishnakumar <kk...@ca...> wrote: > > Hi, > > > > I have configured my build.xml for cobertura 1.6 > > It uses the instrument and reporting task. > > > > <target name=3D"instrument" depends=3D"javacompile"> > > <mkdir dir=3D"${instrumentedclasses}"/> > > <delete file=3D"cobertura.ser" /> > > <cobertura-instrument > todir=3D"${instrumentedclasses}"> > > <fileset dir=3D"${classesdirectory}"> > > <include > name=3D"com/ebv/app/**/*.class"/> > > <exclude > name=3D"com/ebv/app/web/**/*.class"/> > > </fileset> > > </cobertura-instrument> > > <cobertura-instrument > todir=3D"${instrumentedclasses}"> > > <fileset dir=3D"${classesdirectory}"> > > <include > name=3D"com/ebv/framework/**/*.class"/> > > <exclude > name=3D"com/ebv/framework/web/**/*.class"/> > > </fileset> > > </cobertura-instrument> > > <cobertura-instrument > todir=3D"${instrumentedclasses}"> > > <fileset dir=3D"${classesdirectory}"> > > <include > name=3D"oracle/**/*.class"/> > > </fileset> > > </cobertura-instrument> > > <copy overwrite=3D"true" > todir=3D"${classesdirectory}"> > > <fileset > dir=3D"${instrumentedclasses}"/> > > </copy> > > </target> > > > > The instrumentation is working fine after compilation. > > I am using JUnit test cases from Rational XDE. The application is deploye= d > in Weblogic 8.1 SP4 > > After running the Junit test case, I am stopping Weblogic server and > trying to > > Generate html report using the following ant task > > > > <target name=3D"coverage"> > > <delete dir=3D"..\..\coverage" /> > > <mkdir dir=3D"..\..\coverage\reports"/> > > <mkdir dir=3D"..\..\coverage\src"/> > > <copy todir=3D"..\..\coverage\src" > file=3D"${domaindirectory}/cobertura.ser"/> > > <cobertura-report srcdir=3D"..\..\coverage\src" > destdir=3D"..\..\coverage\reports"/> > > </target> > > > > I would appreciate if some one can help me on this. > > > > Thanks in Advance > > > > Regards > > Kris > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, yo= u > are not authorized to read, print, retain, copy, disseminate, distribute,= or > use this message or any part thereof. If you receive this message in erro= r, > please notify the sender immediately and delete all copies of this messag= e. > > |