From: lokendra s. <lok...@ya...> - 2011-04-28 15:18:09
|
Thanks John. It is working as suggested. --- On Tue, 26/4/11, John W. Lewis <Joh...@sa...> wrote: From: John W. Lewis <Joh...@sa...> Subject: RE: [Cobertura-devel] Cobertura “unable to locate file” problem To: "lokendra singh" <lok...@ya...>, "cob...@li..." <cob...@li...>, "fabien bataille" <fab...@al...> Date: Tuesday, 26 April, 2011, 8:22 AM The documentation for basedir says, “This should only be used if you want to include only a few specific files underneath a source tree and exclude all other files.” I think this is not what you want. So, remove the basedir and put what you have after basedir at the end of the command: cobertura-report.sh --format html --datafile $COBERTURA_HOME/core/emscore.ser --destination $REPORT_DIR $COBERTURA_HOME/core/src From: lokendra singh [mailto:lok...@ya...] Sent: Tuesday, April 26, 2011 5:28 AM To: cob...@li...; fabien bataille Subject: Re: [Cobertura-devel] Cobertura “unable to locate file” problem I tried to use --destination but no luck. Can anyone please help here? --- On Mon, 11/4/11, fabien bataille <fab...@al...> wrote: From: fabien bataille <fab...@al...> Subject: Re: [Cobertura-devel] Cobertura “unable to locate file” problem To: cob...@li... Date: Monday, 11 April, 2011, 1:02 AM Hi, I think you should try to use --destination for the source directory. Fabien On 04/11/2011 08:03 AM, lokendra singh wrote: Hi, Please help me to understand what is wrong here? I am using cobertura 1.9.4.1 for Java Code Coverage. I want to attache the source file with HTML report, I am generating report using the below command cobertura-report.sh --format html --datafile $COBERTURA_HOME/core/emscore.ser --basedir $COBERTURA_HOME/core/src --destination $REPORT_DIR HTML report generated successfully. Where I click on the file name in HTML report, it is giving the below error: "Unable to locate com/airvana/serverImpl/ObjectDao.java. Have you specified the source directory?" However I have the java source file at $COBERTURA_HOME/core/src/com/airvana/serverImpl/ObjectDao.java Thanks in advance. Lokendra -- Fabien Bataille CTO/ASR "Junior" Scrum Master Route de Villejust F-91620 Nozay Tel:+33 130772750 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev -----Inline Attachment Follows----- _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |