ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blaine Kendall" <blainenewslett...@yahoo.com>
Subject Re: JspC ALWAYS recompiles files that haven't changed!
Date Thu, 13 Sep 2001 16:17:53 GMT
I'm using Tomcat's jspc as well. But instead of calling the class, I execute
the jspc.bat file.
The exec target has a output option so I use that to log the output.

  <target name="precompile">
     <exec executable="${tomcat.bin.dir}/jspc.bat"
output="${dir.log}/JSP_PREcompile/JSP_JSPCompileTest-${log.file.suffix}"
dir="${tomcat.bin.dir}">
          <arg line=" -v3 -die1 -d ${jsp.build.dir} -uriroot
${jsp.src.dir} -webapp ${jsp.src.dir}" />
     </exec>
  </target>



----- Original Message -----
From: <dhay@lexmark.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, September 07, 2001 2:22 PM
Subject: JspC ALWAYS recompiles files that haven't changed!


>
>
> 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>
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message