Thank you a lot for your answer. 

Your solution works but Mattias send a better and elegant way to do it that
works perfectly:

<target name="precompile-jsp" description="precompile jsp"> 
   <echo message="precompiling JSPs: app-dir=${home.war}"/> 
   <java classname="com.caucho.jsp.JspCompiler" fork="true" > 
      <classpath refid="resin.classpath" /> 
      <arg line="-app-dir ${home.war} ${home.war}" /> 
   </java> 
</target>



BUSCH Steffen wrote:
> 
> I think the Resin 3.0 JspCompiler needs the JSP files as arguments. We
> have accomplished that in this way:
> 
> 
>     <!-- Definition of JSP files that should be precompiled to servlets
> -->
>     <fileset dir="${build.dir}" id="jsp.precompile.fileset">
>       <include name="**/*.jsp"/>
>     </fileset>
> 
>     <!-- Convert fileset to single property, separated by space -->
>     <pathconvert pathsep=" "
>                  property="jsp.precompile.files"
>                  refid="jsp.precompile.fileset">
>     </pathconvert>
> 
> 
>     <echo>Batch Precompile of JSP Files</echo>
>     <java classname="com.caucho.jsp.JspCompiler"
>           classpathref="resin.jspc.classpath" fork="true"
> failonerror="true">
>       <sysproperty key="java.util.logging.config.file"
> value="${jsp.logging.properties}"/>
>       <arg value="-app-dir"/>
>       <arg value="${build.dir}"/>
>       <arg line="${jsp.precompile.files}"/>
>     </java>
> 
> 
> Please note, that this might fail on Windows Platform as there is a
> limitation of the argument length. But it works on our Unix Platform.
> 
> 
> Regards,
> Steffen
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ant-and-JSPCompiler-tp17061443p17082709.html
Sent from the Resin mailing list archive at Nabble.com.



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to