ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucida.com>
Subject RE: Precompiling Jsps for JBoss 3.0-Tomcat4.03 App Server
Date Fri, 17 May 2002 21:31:17 GMT
I tried a couple of things, the only thing that [kindof] works for me is the
following.  Note I'm using JBoss-2.4.4-Tomcat-4.01:

  <target name="jsp-compile">    
    <uptodate property="war.uptodate"
targetfile="${dist.dir}/deploy/war/insight.war">
      <srcfiles dir="${web.dir}" includes="**/*.jsp"/>
    </uptodate>
    <antcall target="jspc"/>
  </target>

  <target name="jspc" unless="war.uptodate">    
    <mkdir dir="${build.dir}/insight.war"/>
    <mkdir dir="${build.dir}/jsp"/>
    <unwar src="${deploy.dir}/war/insight.war"
dest="${build.dir}/insight.war"/>
    <exec executable="${catalina.dir}/bin/jspc.sh">
      <arg line="-d ${build.dir}/jsp"/>
      <arg line="-webapp ${build.dir}/insight.war"/>
    </exec>
    <javac srcdir="${build.dir}/jsp"
           destdir="${build.dir}/jsp"
           debug="on"
           deprecation="${build.deprecation}" >
      <classpath refid="jsp.classpath"/>
    </javac>
  </target>

> -----Original Message-----
> From: Ravi Dodla [mailto:Ravi.Dodla@valtech.com]
> Sent: Thursday, May 16, 2002 2:25 PM
> To: Ant Users List
> Subject: Precompiling Jsps for JBoss 3.0-Tomcat4.03 App Server
> 
> 
> Hello,
> can anyone send me an example of running jasper jspc using an 
> ant target ...
> 
> I have something like this ...
> 
> <java classname="org.apache.jasper.JspC"
> classpathref="ez-time.jspclass.path" failonerror="yes" fork="yes">
>     <arg line="-d ${build.jspclasses.dir} -webapp ${src.jsps.dir}"/>
> </java>
> 
> I need to know what are all the classes that I need to have 
> in the classpath
> to run jspc
> 
> Ravi
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message