ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mika Moilanen <mikmo...@stybba.ntc.nokia.com>
Subject Re: com.ibm.websphere.ant.tasks.JspC doesn't take classpath
Date Fri, 17 Oct 2003 07:36:26 GMT

Unfortunately it doesn't help -- it looks like "wsjspc" is implemented
with two different Java program, and first one ("wslauncher") passes a
fixed classpath to second one ("Jspc").


>>>>> "ext" == ext W Sean Hennessy <shennessy@goldenhourdata.com> writes:

ext> What happens if you leverage the classpath of the taskdef like so...
ext> <!-- Using alternate form of classpath specification -->
ext> <taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC" >
ext>   <classpath>
ext>        <pathelement location="${websphere.home.dir}/lib/wsanttasks.jar" />
ext>        <pathelement location="/foo/bar" />
ext>   </classpath>
ext> </taskdef>

ext> <target name="war">
ext>    <wsjspc
ext>       washome="${websphere.home.dir}"
ext>       src="${comproot}"
ext>       toDir="${comproot}">
ext>     </wsjspc>
ext> </target>

ext> -----Original Message-----
ext> From: Martin Gainty [mailto:mgainty@hotmail.com] 
ext> Sent: Thursday, October 16, 2003 2:01 PM
ext> To: Ant Users List; Mika Moilanen
ext> Subject: Re: com.ibm.websphere.ant.tasks.JspC doesn't take classpath


ext> I have the WebLogic jasper compiler but I dont have the task for Webspherewhich version
Ant are you using?Martin-----
ext> Original Message ----- 
ext> From: "Mika Moilanen" <mikmoila@stybba.ntc.nokia.com>
ext> To: <user@ant.apache.org>
ext> Sent: Thursday, October 16, 2003 8:55 AM
ext> Subject: Re: com.ibm.websphere.ant.tasks.JspC doesn't take classpath


>> 
>> WAS 5.0
>> 
>> >>>>> "Martin" == ext Martin Gainty <mgainty@hotmail.com> writes:
>> 
Martin> What version Webpshere are you using?
Martin> Regards,
>> 
>> 
Martin> ----- Original Message -----
Martin> From: "Mika Moilanen" <mikmoila@stybba.ntc.nokia.com>
Martin> To: <user@ant.apache.org>
Martin> Sent: Thursday, October 16, 2003 7:13 AM
Martin> Subject: com.ibm.websphere.ant.tasks.JspC doesn't take classpath
>> 
>> 
>> >>
>> >> I know that this isn't directly relevant to ant-user, but I'll try 
>> >> anyways...
>> >>
>> >> I'm trying to use WAS Ant tasks with WAS5 -- especially JSP 
>> >> Compiler:
>> >>
>> >> ----------------------------------------------------------
>> >> <taskdef name="wsjspc" 
>> >> classpath="${websphere.home.dir}/lib/wsanttasks.jar"
>> >> classname="com.ibm.websphere.ant.tasks.JspC"/>
>> >>
>> >> <target name="war">
>> >> <wsjspc
>> >> washome="${websphere.home.dir}"
>> >> classpath="/foo/bar"
>> >> src="${comproot}"
>> >> toDir="${comproot}">
>> >> </wsjspc>
>> >> </target>
>> >>
>> >> ----------------------------------------------------------
>> >>
>> >> By examining the verbose output of Ant when executing "war" target, 
>> >> I noticed that "/foo/bar" is never listed in '-classpath' passed to 
>> >> JSPC
>> >> -- and the compilation fails:
>> >>
>> >> ----------------------------------------------------------
>> >> .
>> >> .
>> >> .
>> >> [wsjspc] '-DenableJava2Security=true'
>> >> [wsjspc] '-Dcom.ibm.itp.location=/vobs/j2/was//deploytool/itp'
>> >> [wsjspc] '-Xmx256M'
>> >> [wsjspc] '-classpath'
>> >> [wsjspc]
Martin> 
ext> '/vobs/j2/was/properties:/vobs/j2/was/lib/bootstrap.jar:/vobs/j2/was/lib/j2e
Martin> e.jar:/vobs/j2/was/lib/lmproxy.jar'
>> >> [wsjspc] 'com.ibm.ws.bootstrap.WSLauncher'
>> >> [wsjspc] 'com.ibm.ws.webcontainer.jsp.compiler.ibmtools.JspModC'
>> >> [wsjspc] '-appDir'
>> >> .
>> >> .
>> >> .
>> >> ----------------------------------------------------------
>> >>
>> >> Could anyone help, what should I do in order to get '/foo/bar' into 
>> >> '-classpath'?
>> >>
>> >>
>> >> --
>> >> Best Regards,
>> >> Mika
>> >> ----------------------------------------------------------
>> >> mikmoila@shire.ntc.nokia.com  phone: +358-0-511-23587
>> >> Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
>> >> ----------------------------------------------------------
>> >>
>> >>
>> >> -------------------------------------------------------------------
>> >> --
>> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> >> For additional commands, e-mail: user-help@ant.apache.org
>> >>
>> >>
>> 
>> 
Martin> ----------------------------------------------------------------
Martin> ----
ext> -
Martin> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
Martin> additional commands, e-mail: user-help@ant.apache.org
>> 
>> 
>> --
>> Best Regards,
>> Mika
>> ----------------------------------------------------------
>> mikmoila@shire.ntc.nokia.com  phone: +358-0-511-23587
>> Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
>> ----------------------------------------------------------
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
>> 

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



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


-- 
Best Regards, 
	Mika
----------------------------------------------------------
mikmoila@shire.ntc.nokia.com  phone: +358-0-511-23587
Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
----------------------------------------------------------


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


Mime
View raw message