When compiled java source with Ant any Exception thrown from these compiled classes doesnt show line numbers. This seems to be a default setting in Ant.
http://ant.apache.org/manual/CoreTasks/javac.html
BUILD FAILED
java.lang.NullPointerException
at com.mycompany.myapp.MyClass.doSomething(Unknown Source)
To get back the line numbers in the Exception Stacktrace add the below options to the javac task.
debug="on"
No comments:
Post a Comment