Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Emma Coverage report Error

 
Madhan Mahendranan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
I have made emma code coverage through ant.
when i try to do "ant -buildfile emma.build.xml compile" im getting couple of build fail error

1) When i set javac fork=" yes" In my emma.build.xml file im getting following error

compile:
[javac] Compiling 99 source files to C:\MDA\Source\out

BUILD FAILED
C:\MDA\cruisecontrol-bin-2.8.4\emma.build.xml:108: Error running C:\Program File
s\Java\jdk1.6.0_21\bin\javac.exe compiler

**my JAVA_HOME and ANT_HOME are working properly

2) When i set javac fork="off" im getting following error

[javac] ^
[javac] C:\EX\security\DaoAuthenticationProviderTest.java:40: annotation type not applicable to this kind of declaration
[javac] @Ignore
[javac] ^
[javac] Note: C:\EX\Logger.java us
es or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 9 errors

BUILD FAILED
C:\EX\cruisecontrol-bin-2.8.4\emma.build.xml:108: Compile failed; see the compiler error output for details.

Total time: 16 seconds
C:\EX\cruisecontrol-bin-2.8.4>

Can any one try to help me?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Madhan and welcome to Javaranch!

Without delving too deeply into this, I'd firstly make sure that your Java is not installed where it has a PATH with spaces in it "Program Files", traditionally Ant and other tools dislike this...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try running ant with the -v option, that will give you more output and hopefully will help to pinpoint the issue.

Regarding the second item, without seeing DaoAuthenticationProviderTest.java the only thing I could say is that you have the @Ignore annotation in a place where that annotation is not allowed (which is basically what the error is saying).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic