Hi everyone,
I am using Ant to pre-compile my jsp pages using tomcat's jspc. Everything
(eventually!) is working fine, except that all the pages are re pre-compiled
even if they haven't changed.
Does anyone know how to get around this?
Many thanks,
Dave
PS Has anyone ever figured out how to capture the output?!!!
Here's the target I'm using:
<!-- pre-compile JSPs -->
<target name="jspc" depends="compile">
<java classname="org.apache.jasper.JspC">
<classpath>
<pathelement
location="${tomcat.home}\lib\common\servlet.jar"/>
<pathelement
location="${tomcat.home}\lib\container\jasper.jar"/>
<pathelement
location="${tomcat.home}\lib\container\jaxp.jar"/>
<pathelement
location="${tomcat.home}\lib\container\parser.jar"/>
<pathelement
location="${tomcat.home}\lib\common\core_util.jar"/>
<pathelement location="${build.home}\WEB-INF\classes"/>
<pathelement location="${lib}\struts.jar"/>
</classpath>
<arg value="-d" />
<arg file="${build.home}\WEB-INF\classes\JspServ_pre" />
<arg value="-v4"/>
<arg value="-p" />
<arg value="JspServ" />
<arg value="-webapp" />
<arg file="${src}\jsp"/>
</java>
</target>