ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "strug" <>
Subject Need advice using jspc task with 1.5.1
Date Fri, 21 Feb 2003 18:45:25 GMT

i have some general questions using jspc-Task. First of all, thanks to the
creator of this task!

I'm using Ant 1.5.1 with Tomcat 4.0.x (and/or Tomcat 4.1.x)

I want to pre-compile the JSPs and want them to be located under the Tomcat
work directory.

With my first sample i have some problems:

    <target name="compile.jsp" depends="init" description="Compile JSPs.">
        <echo message="precompile JSPs" />
            <delete dir="${dest.dir}"/>
            <mkdir dir="${dest.dir}"/>


                    <fileset dir="${catalina.home}/common/lib">
                        <include name="**/*.jar"/>
                    <fileset dir="${catalina.home}/lib">
                        <include name="**/*.jar"/>

                <webapp basedir="${web.dir}"/>
                <include name="**/A*.jsp" />



*) using the webapp tag the build fails with a
java.lang.OutOfMemoryException. My OS is Win2k Server.

*) before the process failed some jsp's get compiled. And here is another
problem. All the files are located in the same desitination directory. The
dir-structure from the jsp sources is not copied.

*) the name of the jsp "portal.jsp" will be, the pattern i found
in Tomcat is of the form
"portal$" or like "consultant_0005fview$". Will this
be a problem for Tomcat, can i modify the converting pattern.

Thanks in advance for any help and any link towards more detailed help then
i found at
Thanks, Leif

View raw message