File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Emma Coverage report Error" Watch "Emma Coverage report Error" New topic

Emma Coverage report Error

Madhan Mahendranan

Joined: Dec 23, 2010
Posts: 1
I have made emma code coverage through ant.
when i try to do "ant -buildfile compile" im getting couple of build fail error

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

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

C:\MDA\cruisecontrol-bin-2.8.4\ 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\ annotation type not applicable to this kind of declaration
[javac] @Ignore
[javac] ^
[javac] Note: C:\EX\ 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

C:\EX\cruisecontrol-bin-2.8.4\ Compile failed; see the compiler error output for details.

Total time: 16 seconds

Can any one try to help me?
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

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

Joined: May 14, 2008
Posts: 5852

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 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
I agree. Here's the link:
subject: Emma Coverage report Error
It's not a secret anymore!