ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kailash.Subraman...@alltel.com
Subject Re: Building jsps
Date Sun, 24 Mar 2002 02:46:11 GMT

I tried using it. Unfortunately ant complains that apply task doesn't
support nested "property"   element.
/ebppvobstore/vobs/vobadm_project/Spectrum/version3.xml:96: The <apply> task doesn't
support the nested "property" element.


<target name="jspcompile" depends="init">
     <apply executable="java">
     <arg line="weblogic.jspc -compiler javac -classpath ${cp} -d ${src} -docroot Hibernia
-keepgenerated"/>
     <property name="cp" refid="project.class.path"/>
     </apply>
     </target>

Thx
Kailash



From: Erik Hatcher <jakarta-ant@ehatchersolutions.com> on 03/23/2002 02:33
      PM

Please respond to Ant Users List <ant-user@jakarta.apache.org>

To:   Ant Users List <ant-user@jakarta.apache.org>
cc:

Subject:  Re: Building jsps

The same way you would at the command-line, using -cp/-classpath.  And you
can convert a <path> to a string using:

    <property name="path.string" refid="path.id"/>

    Erik


----- Original Message -----
From: <Kailash.Subramanian@alltel.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Saturday, March 23, 2002 1:59 PM
Subject: Re: Building jsps


>
> 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 <jakarta-ant@ehatchersolutions.com> on 03/23/2002
12:37
>       PM
>
> Please respond to Ant Users List <ant-user@jakarta.apache.org>
>
> To:   Ant Users List <ant-user@jakarta.apache.org>
> 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: <Kailash.Subramanian@alltel.com>
> To: "Ant Users List" <ant-user@jakarta.apache.org>
> 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:ant-user-unsubscribe@jakarta.apache.org
> >
> > For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org
>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org
>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org
>
>
>


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








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


Mime
View raw message