• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Emma Coverage report Error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
reply
    Bookmark Topic Watch Topic
  • New Topic