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: precompiling jsps for Websphere...
Date Thu, 23 Oct 2003 08:40:00 GMT
>>>>> "ext" == ext Ciramella, EJ <ECiramella@emptoris.com> writes:

ext> ------_=_NextPart_001_01C398B6.A90B3660
ext> Content-Type: text/plain;
ext> 	charset="iso-8859-1"

ext> Has anyone done any work precompiling jsps for WebSphere.  If so, could they
ext> share any tips/tatics?  I'm struggling a bit.

ext> ------_=_NextPart_001_01C398B6.A90B3660--


I was struggling with the same problem few days ago; Here's how I got
it working.

Define the task "wsjpc" as suggested at 

http://publib7b.boulder.ibm.com/wasinfo1/en/info/aes/javadoc/ae/com/ibm/websphere/ant/tasks/JspC.html

----------------------------------------------------------
<taskdef name="wsjspc"
  classpath="${websphere.home.dir}/lib/wsanttasks.jar"
  classname="com.ibm.websphere.ant.tasks.JspC"/>
----------------------------------------------------------

...and use it, for example, like this:
----------------------------------------------------------
<target name="war2">
  <wsjspc 
    washome="${websphere.home.dir}"
    src="${war.src.dir}"
    toDir="${war.dest.dir}">
  </wsjspc>
</target>
----------------------------------------------------------

My problem was before I figured out that the directory passed to the
task has to be in "war" format. That is, for example, in a format like
the example

<was installation dir>/samples/lib/TechnologySamples/BasicCalculator.war

(you've to have WEB-INF/classed/com/foo etc).


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