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/**" />
</apply>
</target>
Thx
Kailash
From: Erik Hatcher <[EMAIL PROTECTED]> on 03/23/2002 12:37
PM
Please respond to Ant Users List <[EMAIL PROTECTED]>
To: Ant Users List <[EMAIL PROTECTED]>
cc:
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
to
avoid compiling files that are already up-to-date.
Erik
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 12:16 PM
Subject: Building jsps
>
> I want to build jsps which are spread different directories. The ant code
I
> 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="
${basedir}/com/alltel/ebusiness/common/error/pages/*.jsp"
/>
> </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
I
> can build the jsps
> which are in different directories. I would not know before hand which
are
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: <mailto:[EMAIL PROTECTED]
>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>