2) When i set javac fork="off" im getting following error
[javac] C:\EX\security\DaoAuthenticationProviderTest.java:40: annotation type not applicable to this kind of declaration
[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
C:\EX\cruisecontrol-bin-2.8.4\emma.build.xml:108: Compile failed; see the compiler error output for details.
Total time: 16 seconds
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).