ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Precompile JSP
Date Mon, 02 Oct 2006 11:16:54 GMT
Also see the manual:

  if you use this task with Tomcat's Jasper JSP compiler, you should seriously consider 
  using the task shipping with Tomcat instead. This task is only tested against Tomcat 4.x.

  There are known problems with Tomcat 5.x that won't get fixed in Ant, please use Tomcat's

  jspc task instead. 


>-----Urspr√ľngliche Nachricht-----
>Von: Steve Loughran [] 
>Gesendet: Montag, 2. Oktober 2006 11:27
>An: Ant Users List
>Betreff: Re: Precompile JSP
>Hanmay Udgiri wrote:
>> Hi
>> I want to pre-compile my JSP after taking from CVS.
>> I have websphere 5 installed on linux box.
>> what comamnd I need to use to compile my JSPs Does the following 
>> command works
>>     <jspc srcdir="${src}/WebContent" destdir="${build}/WebContent"
>> package="com.jsp" compiler="jasper41" verbose="9">
>>           <include name="**/*.jsp"/>
>>            <classpath>
>>                <pathelement path="${datashopper.classpath}"/>
>>            </classpath>
>>        </jspc>
>No. It only works for jasper41, not for websphere, so your 
>precompiled classes wont work.
>I would recommend avoiding bothering to precompile JSP pages. Instead 
>write tests using HttpUnit that fetch every single JSP page. That not 
>only gives you the compilation, it gets you started on those tests you 
>are going to need anyway.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message