I’m using Elcipse’s AntRunner to excute the Ant task. When performing the javac task,if any compilation error occurs, I’m getting the following error messge in the console
C:\build.xml:41: Compile failed; see the compiler error output for details.
What I need to do for displaying the actual compilation errors on the console? How to I can log the same in a file? . Thanks
When Eclipse AntRunner has used, in order to show the Compilation errors on the console The
addBuildListener API can be used.
Create a class which extends the org.apache.tools.ant.DefaultLogger. For example