I have a problem in that the EMMA generated HTML reports do not have the source files linked into the reports. When I drill down to the individual classes I have the following text where the highlighted source should be :
I'm making sure I build my source w/ the -g (debug="true" in ant) property, exclude any rmic generated classes etc. And in fact I have two projects on this build server which do in fact link the source files in the reports correctly.
Furthermore, to test a theory I had, I let the build run, made sure the reports generated in the coverage directory did not link to the source. Then I copied the line which showed the EMMA command for generating report which looks like this :
: EMMA commandline:
I ran this command and added the -sp to specify the source dir :
java emma -r html txt -sp C:\RSSP\Dev\Cerberus\console\src -sp C:\RSSP\Dev\Cerberus\console/../../issJavaCommon/src -in C:\RSSP\Dev\Cerberus\console\coverage.em -in C:\RSSP\Dev\Cerberus\console\coverage.ec -Dreport.html.out.file=coverage/index.html
This generated the reports and linked to the source correctly.
So my question is this, what am I doing wrong in my project? Is there any way to pass the -sp parameters to teamcity to let emma know where to look for the source files? And furthermore, what baffles me is the fact that the other two projects, which have very similar directory structure for the sourcepath and outputpaths, do provide the source in the reports.
Any thoughts? I can upload some build logs if it helps, or provide more info on my build env structure if that helps. But I'm hoping there is simply a way to force the -sp parameter on emma during report generation, which seems to be the fix.