ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Tomcat JSPC Precompile using Ant - unique jsp name problem
Date Sat, 05 Apr 2003 18:22:44 GMT
hi steve,

It seems we are using different tasks for generating the JSPs (and 
unfortunately I don't have your complete definition):

My taskdefinition looks like:
<target name="jspc">
    <taskdef classname="org.apache.jasper.JspC" name="jasper2">
      <classpath id="jspc.classpath">
        <pathelement location="${java.home}/../lib/tools.jar"/>
        <fileset dir="${catalina.home}/server/lib">
          <include name="*.jar"/>
        <fileset dir="${catalina.home}/common/lib">
          <include name="*.jar"/>
        <!-- include all JARs in lib-directory -->
        <fileset dir="${build.home}/WEB-INF/lib/">
                <include name="*.jar"/>



    <jasper2 destdir="build/" compiler="jasper41"    >
       <webapp basedir="src/webapp" />


If I try to add <webapp basedir="src/webapp" /> within the taskdef, I get 
the following error:
Buildfile: build.xml

file:E:/esvdevelop/devapp/forms/build.xml:513: The <jasper2> task doesn't 
support the nested "webapp" element.

Could you please post your complete taskdefinition, so I can easily paste 
the working solution?
Or do I have to add something to make the jasper2 task support the webapp 

thx alot

Steve Loughran <> 
04.04.2003 02:13
Please respond to
"Ant Users List" <>

Ant Users List <>

Re: Tomcat JSPC Precompile using Ant - unique jsp name problem wrote:
> Hi Steve,
> I have ant 1.5.2 and tried to find more about the webapp option.
> However, at
> I only found that the option exist, but not how to use it. 
> I tried this.
> ============
> <taskdef classname="org.apache.jasper.JspC" name="jasper2" 
> webapp="true">

its a nested element

<jspc destdir="build/jspc" compiler="jasper41" >
  <webapp basedir="src/webapp" />

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message