Try something like:
<property name="build.compiler" value="jikes"/>
<path id="compile.classpath">
<pathelement location="${java.home}/jre/lib/rt.jar"/>
<pathelement location="${java.home}/lib/tools.jar"/>
<pathelement location="${tomcat.lib}/jasper-compiler.jar"/>
<pathelement location="${tomcat.lib}/jasper-runtime.jar"/>
<pathelement location="${tomcat.common.lib}/xerces.jar"/>
<pathelement location="${tomcat.common.lib}/servlet.jar"/>
...
</path>
<!-- store the generated java classes here -->
<property name="generated.java.classes.dir" value="/some/path" />
<!-- generate java classes for you JSPs and mapping web.xml -->
<java
classname="org.apache.jasper.JspC"
classpath="${compile.classpath}"
fork="true"
failonerror="true">
<arg value="-d" />
<arg value="${generated.java.classes.dir}" />
<arg value="-webinc" />
<arg value="/path/to/the/generated/web.xml" />
<arg value="-webapp" />
<arg value="/path/to/you/webapp/dir" />
<jvmarg
value="-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
d" />
<jvmarg value="-Djasper.home=${tomcat.home}" />
<jvmarg value="-Xms194m" />
<jvmarg value="-Xmx194m" />
</java>
<!-- compile generated java classes and store them in their finall location
-->
<javac
srcdir="${generated.java.classes.dir}"
destdir="/path/to/you/webapp/dir/WEB-INF/classes"
optimize="off"
debug="on"
depend="on"
classpath="${compile.classpath}"
includeJavaRuntime="on"/>
Regards,
Rossen
> -----Original Message-----
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: Precompiling JSPs for Tomcat
>
>
> Hi all,
>
> I'm having some issues with using Ant's <jspc> task (I have a
> thread going
> on the Ant mailing list), is there any way to manually call
> the compilation
> for Tomcat's build? Somehow, Tomcat must do it, so I figure
> there has to be
> a way to kluge something together that does the same thing?
>
> --
> Sean LeBlanc - Nutros.com
> Random fortune/quote:
> The biggest difference between time and space is that you can't reuse
> time.
> -- Merrick Furst
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>