When using org.apache.jasper.JspC as a taskdef Ant tag, if there is a failure in the compilation the whole compilation aborts. Although in some working environments it is required to stop the whole process after the first error, there are cases where it is needed to have the whole list of errors instead of stopping at the first one. A typical case is when migrating from WebLogic to JBoss. WebLogic's JSPC forgives so much that develpers do not notice they are entering faulty JSP expressions. When compiling with Jasper for migration it is needed to be able to get all the errors to distribute the job among the developers. I recommend a "failonerr" capability to JspC and modify the unconditional re- throw of exceptions catched by JspC.execute().
Created attachment 15195 [details] Implementation of "failonerror" option for JspC when used as an Ant task. This patch was done for tomcat-5.5.7.
Implemented. Thanks for the idea and contribution. Next time, please use a diff -u format.