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:47:13 GMT

Thanks for the hint -- althought I think the build file you sent is
equal to mine.

>>>>> "ext" == ext Donal Quinlan <donal@savvion.com> writes:

ext> --------------010507080406070507090609
ext> Content-Type: text/plain; charset=us-ascii; format=flowed
ext> Content-Transfer-Encoding: 7bit

ext> I contacted IBM about precompiling jsp with WebSphere 5.0.2 before. They 
ext> gave me the attached build file which I (heavily) modified to fit my needs.

ext> What you need to do is copy your webapp (or uncompress the war) to a 
ext> temp location. The task reads the web.xml. It uses the jar files under 
ext> WEB-INF/lib.
ext> After you have the java file output, you just need the normal javac task 
ext> to get your classes.

ext> Donal

ext> Martin Gainty wrote:

>> Which Ant version supports wsjpc?
>> Thanks,
>> -M
>> ----- Original Message ----- 
>> From: "W. Sean Hennessy" <shennessy@goldenhourdata.com>
>> To: "'Ant Users List'" <user@ant.apache.org>
>> Sent: Thursday, October 16, 2003 11:43 AM
>> Subject: RE: com.ibm.websphere.ant.tasks.JspC doesn't take classpath
>> 
>> 
>> 
>> 
>>> What happens if you leverage the classpath of the taskdef like so...
>>> 
>>> <!-- Using alternate form of classpath specification -->
>>> <taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC" >
>>> <classpath>
>>> <pathelement location="${websphere.home.dir}/lib/wsanttasks.jar" />
>>> <pathelement location="/foo/bar" />
>>> </classpath>
>>> </taskdef>
>>> 
>>> <target name="war">
>>> <wsjspc
>>> washome="${websphere.home.dir}"
>>> src="${comproot}"
>>> toDir="${comproot}">
>>> </wsjspc>
>>> </target>
>>> 
>>> -----Original Message-----
>>> From: Martin Gainty [mailto:mgainty@hotmail.com]
>>> Sent: Thursday, October 16, 2003 2:01 PM
>>> To: Ant Users List; Mika Moilanen
>>> Subject: Re: com.ibm.websphere.ant.tasks.JspC doesn't take classpath
>>> 
>>> 
>>> I have the WebLogic jasper compiler but I dont have the task for
>>> 
>>> 
>> Webspherewhich version Ant are you using?Martin-----
>> 
>> 
>>> Original Message ----- 
>>> From: "Mika Moilanen" <mikmoila@stybba.ntc.nokia.com>
>>> To: <user@ant.apache.org>
>>> Sent: Thursday, October 16, 2003 8:55 AM
>>> 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> 
>>>> 
>>>> 
>> '/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> ----
>>> -
>>> 
>>> 
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
>>>> 
>>>> 
>>>> 
>>>> 
>>> ---------------------------------------------------------------------
>>> 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
>>> 
>>> 
>>> 
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
>> 
>> 

ext> --------------010507080406070507090609
ext> Content-Type: text/xml;
ext>  name="build.xml"
ext> Content-Transfer-Encoding: 7bit
ext> Content-Disposition: inline;
ext>  filename="build.xml"

ext> <?xml version="1.0"?>

ext> <project name="CompileJSPs" default="main" basedir=".">
ext>   <taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC"/>

ext>   <target name="main">
ext>     <wsjspc wasHome="c:/progra~1/WebSphere/AppServer" src="c:/work/P53957/expanded/PlantsByWebSphere.war"
toDir="c:/work/P53957/temp" />
ext>   </target>
ext> </project>


ext> --------------010507080406070507090609
ext> Content-Type: text/plain; charset="us-ascii"

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


-- 
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