ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johannes.fi...@fwd.at
Subject Re: Tomcat JSPC Precompile using Ant - unique jsp name problem
Date Sun, 06 Apr 2003 20:54:45 GMT
Hi Steve,

Does the jspc-task also work for compiling JSPs using Jasper (and solve 
the problem of similarly named JSPs)? 
If yes, could you post a brief sample of your working ant taskdefinition?

thx alot for your support!
Johannes




"Steve Loughran" <steve_l@iseran.com> 
05.04.2003 23:44
Please respond to
"Ant Users List" <user@ant.apache.org>


To
"Ant Users List" <user@ant.apache.org>
cc

Subject
Re: Tomcat JSPC Precompile using Ant - unique jsp name problem







----- Original Message -----
From: <johannes.fiala@fwd.at>
To: "Ant Users List" <user@ant.apache.org>
Sent: Saturday, April 05, 2003 10:22
Subject: Re: Tomcat JSPC Precompile using Ant - unique jsp name problem


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

I've been talking about the <jspc> task that ships with Ant 1.5.

>
> 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>
>         <fileset dir="${catalina.home}/common/lib">
>           <include name="*.jar"/>
>         </fileset>
>         <!-- include all JARs in lib-directory -->
>         <fileset dir="${build.home}/WEB-INF/lib/">
>                 <include name="*.jar"/>
>         </fileset>
>
>       </classpath>
>
>
>     </taskdef>
>
>     <jasper2 destdir="build/" compiler="jasper41"    >
>        <webapp basedir="src/webapp" />
>     </jasper2>
>
>   </target>
> ==========================
>
> If I try to add <webapp basedir="src/webapp" /> within the taskdef, I 
get
> the following error:
> ==========================
> Buildfile: build.xml
>
> BUILD FAILED
> 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
> element??
>
> thx alot
> Johannes
>
>
>
>
>
> Steve Loughran <steve_l@iseran.com>
> 04.04.2003 02:13
> Please respond to
> "Ant Users List" <user@ant.apache.org>
>
>
> To
> Ant Users List <user@ant.apache.org>
> cc
>
> Subject
> Re: Tomcat JSPC Precompile using Ant - unique jsp name problem
>
>
>
>
>
>
> johannes.fiala@fwd.at wrote:
> > Hi Steve,
> >
> > I have ant 1.5.2 and tried to find more about the webapp option.
> > However, at http://ant.apache.org/manual/OptionalTasks/jspc.html
> > 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" />
> </jspc>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>


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



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