aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Emma Coverage report Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Emma Coverage report Error" Watch "Emma Coverage report Error" New topic
Author

Emma Coverage report Error

Madhan Mahendranan
Greenhorn

Joined: Dec 23, 2010
Posts: 1
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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...


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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).


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Emma Coverage report Error