I precompile jsp in webapp using tomcat as described here: http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web_Application_Compilation
Is it possible to exclude a subset of jsp files in an application? According to the documentation of org.apache.jarsper.JpsC, it does not offer such a thing. But I was wondering if someone came up with an innovative way to achieve this.
So far, I have tried to delete jspC generated java files before doing java compilation, but now I am getting errors in some jsp files from JspC and would like JspC to ignore them.
I use a different approach as stated in: A different twist to compile JSP
You just need to modify your example to exclude some files before calling connect();
connect();
You can add an extra task to the ant script to copy the jsps you want to compile to a temporary folder, then compile them from there. The copy tag has many options for inclusion / exclusion, etc.