ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wey, Gerald" <g...@systemax.com>
Subject RE: i really need your help with the jspc task <ant 1.5.1>
Date Mon, 03 Mar 2003 21:13:36 GMT

If you are using Weblogic then I can show you how to do it using the <java>
task. I tried to get the <jspc> task work for quite a while, and I finally
decided to use the command line version of weblogic.jspc
Here is the target I use for weblogic 7.0. It may also work if your
app-server has a similar command line function, just paste in the command
where it says classname="weblogic.jspc". This is like calling "java
weblogic.jspc" from the command line. Look up your appservers jspc utility.

<target name="jspc" depends="compile">
      <mkdir dir="${war.dir}" />
	<mkdir dir="${jsp.dir}" />
	   
      <java fork="yes" maxmemory="512m" classpath="${classpath}" 
                                       classname="weblogic.jspc">
         <arg line="-d ${war.dir}/WEB-INF/classes -webapp          
             ${war.dir} -compileAll -k -verboseJspc -O" />
      </java>
</target>
I use the <java> task to call the weblogic.jspc compiler, and then I use the
<arg> to supply the arguments. This is sufficient and pretty straight
forward. Good luck.
-Jerry




-----Original Message-----
From: Martin [mailto:mgainty@hotmail.com]
Sent: Monday, March 03, 2003 4:01 PM
To: Ant Users List
Subject: Re: i really need your help with the jspc task <ant 1.5.1>


Dovik:
take a look at
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/bin/jsp_java/com/mercury/a
dmincenter/jsp/m/tp16AdminCenter/solv4/_0003515/projects/AdminCenter/webapps
/taken_0002dfrom_0002dsite/frames.java

located in srcdir="${webapps.root} (webapps) folder

----- Original Message -----
From: "Dovik Nissim" <dovikn@mercury.co.il>
To: <user@ant.apache.org>
Sent: Monday, March 03, 2003 1:45 PM
Subject: i really need your help with the jspc task <ant 1.5.1>


> Greetings
> i'm sorry if i'm bothering you but i really need your help
>
> I'm trying to compile my project's jsps using the ant 1.5.1
> My build.xml:
>
> <target name="jsp-to-java" depends="init" description="Compiles JSP files
to
> Java files">
>       <mkdir dir="${build.dir}/jsp_java"/>
>       <jspc srcdir="${webapps.root}"
>             destdir="${build.dir}/jsp_java"
>             package="com.mercury.admincenter.jsp"
>             verbose="9">
>         <include name="**/*.jsp" />
>         <classpath refid="jsp.class.path"/>
>       </jspc>
>   </target>
>
> where:
> <property name="build.dir" value="bin"/>
> <property name="webapps.root" value="webapps"/>
>
> the result is a total failure: <see below> , can you tell me where is my
> problem ,
> my e-mail in case you need more information and for any response :
>
> dovikn@mercury.co.il <mailto:dovikn@mercury.co.il>
>
> any kind of help will be most appreciated
>
> thanks
>
> Dovik
>
>
> jsp-to-java:
>     [mkdir] Created dir:
> /m/tp16AdminCenter/solv4/515/projects/AdminCenter/bin/jsp_java
>      [jspc] Compiling 125 source
>
files/m/tp16AdminCenter/solv4/515/projects/AdminCenter/bin/jsp_java/com/merc
> ury/admincenter/jsp
>   [jasperc] 2003-03-03 05:16:56 - Internal Error: File /WEB-INF/web.xml
not
> found
>   [jasperc] 2003-03-03 05:16:56 - Class name is: frames
>   [jasperc] 2003-03-03 05:16:56 - Java file name is:
>
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/bin/jsp_java/com/mercury/a
>
dmincenter/jsp/m/tp16AdminCenter/solv4/_0003515/projects/AdminCenter/webapps
> /taken_0002dfrom_0002dsite/frames.java
>   [jasperc] 2003-03-03 05:16:57 -
>   [jasperc] Handling Directive: page
> org.xml.sax.helpers.AttributesImpl@3ee284
>   [jasperc] 2003-03-03 05:16:57 - Accepted
> org.apache.jasper.compiler.Parser$Directive at
>
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/webapps/taken-from-site/fr
> ames.jsp(0,0)
>   [jasperc] 2003-03-03 05:16:57 - Accepted
> org.apache.jasper.compiler.Parser$Scriptlet at
>
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/webapps/taken-from-site/fr
> ames.jsp(2,0)
>   [jasperc] 2003-03-03 05:16:57 - Accepted
> org.apache.jasper.compiler.Parser$Scriptlet at
>
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/webapps/taken-from-site/fr
> ames.jsp(6,0)
>   [jasperc] 2003-03-03 05:16:58 - Accepted
> org.apache.jasper.compiler.Parser$Scriptlet at
>
/m/tp16AdminCenter/solv4/515/projects/AdminCenter/webapps/taken-from-site/fr
> ames.jsp(24,1)
>   [jasperc] 2003-03-03 05:16:58 - Accepted
>
>
> ---------------------------------------------------------------------
> 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