ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Building jsps
Date Sat, 23 Mar 2002 18:59:46 GMT

I tried using apply. But I am not sure how to add classpath in the argument
This is the code I am using.

<target name="jspcompile" depends="init">
     <apply executable="java">
     <arg line="weblogic.jspc -compiler javac  -d ${src} -docroot Hibernia -keepgenerated"/>
     <fileset dir="${src}" includes="**/*.jsp/**" />


From: Erik Hatcher <> on 03/23/2002 12:37

Please respond to Ant Users List <>

To:   Ant Users List <>

Subject:  Re: Building jsps

There is an optional <wljspc> task, but it may be too outdated or not
applicable in your case.

Also, the latest CVS codebase has a <jspc> task that has the goal of
wrapping vendor-specific compilation of JSP.  Perhaps you could jump in and
give it a try and see if it would work for your needs.

But, alternatively, you could use the <apply> task to invoke "java
weblogic.jspc", which would have the added benefit of dependency checking
avoid compiling files that are already up-to-date.


----- Original Message -----
From: <>
To: "Ant Users List" <>
Sent: Saturday, March 23, 2002 12:16 PM
Subject: Building jsps

> I want to build jsps which are spread different directories. The ant code
> am using is
> <target name="jspcompile" depends="init">
>      <java  classname="weblogic.jspc" fork="yes">
>      <classpath refid="project.class.path"/>
>      <arg line=" -compiler javac -package Hibernia -keepgenerated" />
>      <jvmarg value="-Dweblogic.jsp.unix.caseSensitive=true"/>
>      <arg value="
>      </java>
>      </target>
>           This doesn't work since I am specifying *.jsp in the arg value.
If I specify the individual file name, it works. I would like to know, how
>  can build the jsps
> which are in different directories. I would not know before hand which
the directories. I can't use fileset dir since ant complains that java task
>  doesn't support it.
> Anybody has any idea ? I want to use something like,
> fileset dir="${rootdir}" includes ="**/*.jsp/**
> Thanks in advance.
> Kailash
> --
> To unsubscribe, e-mail:   <
> For additional commands, e-mail: <

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

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

View raw message