Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Incremental JSP offline compilation

Johann Uhrmann

2003-08-11


Hello,

is there a way to compile JavaServer Pages offline with ant?

I am currently using the jspc ant task, but it has some significant
disadvantages:

- no support for incremental compilation
- no support for the compilation of directory trees
 (afaik every single page has to be mentioned in the build
  script)
- no generation of servlet and servlet-mapping entries for the
 deployment descriptor

Jasper2 seems to address that issues, however I was not able to
use it properly from my ant scripts. The problem is that it seems
to use the classpath from the CLASSPATH environment variable instead
of providing the possibility to specify a classpath in the build.xml.

Could someone please show me some information and/or links that show
how to use jasper2 (or another jsp compiler that addresses those issues)
and how to integrate it in ant.

Thank You very much,

Hans

P.S.:
Please correct me if I was wrong about the jspc disadvantages.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.