why report can not find java source

  • wangcheng

    wangcheng - 2012-05-17

    Finally , i can generate the coverage report by emma ,by there is a problem that is the page "COVERAGE BREAKDOWN BY SOURCE FILE" can not link java source

    source file 'com/xxx/xxx/web/bean/AgentBean.java' not found in sourcepath

    but my java source file is exist and the path is correct .

  • Ernest Quintin

    Ernest Quintin - 2012-05-17

    Forgive me if I state the obvious that you may already have tried, but it's been a long time since I ran Emma:
    1. Is this only one of several source files?  If Emma can find the others then take a hard look at the one that errors.
    2. Did you compile with all debug enabled?
    3. If you are running under Ant or Maven or something that can exclude files?
    4.  That path appears to be relative.  I just looked back over my old scripts and saw that I used absolute paths everywhere.  Maybe I was being overcautious but it worked.

  • wangcheng

    wangcheng - 2012-05-18

    dear avatar,

    the reason is 4,I change my sourcepath it works。



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks