Can someone check this one in pls in manual/optionaltasks ? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 February 2001 17:45 To: [EMAIL PROTECTED] Subject: Re: WLJSPC : Weblogic JSP Compilation: Regarding
Hi, The WLjspc task in Ant 1.2, as you suggest works only on 4.5.1, since when i wrote it did not have a wl 5.1 instance installed. Moreover, i have been out of the mailing list for a long time. Here's what i will do... In the next couple of days, i will update the docs to reflect what the 1.2 jspc does (it has javadocs, but has not made it to the main docs). Over the next week or so, i will try and merge some of the jspc tasks that have been submitted , without breaking any ant 1.2 build files. Thanks - Avik List: ant-dev Subject: Re: WLJSPC : Weblogic JSP Compilation: Regarding From: Michael Gilbode <[EMAIL PROTECTED]> Date: 2001-02-20 19:10:36 [Download message RAW] Venki, I'm not sure of the current state of the WLJSPC task. I had the same needs you had so I updated the WLJSPC task from ant 1.2 to work with WebLogic 5.1 & 6.0. It's kinda kludgy in spots but it seems to work fine with WebLogic 4.5.1, 5.1, and 6.0. The WLJSPC task that is currently included with ant will not work in WebLogic 5.1 or 6.0 (at least not how you'd expect if you have subdirectories) due to how packages names are specified. After some work I also got this task to work in-process. The original required that ant fork to work. It's still a little slow but I think the slowness can be mostly blamed on the weblogic.jspc. I've attached a jar containing the source files that I've modifed. They have Javadoc in them so that should help you out. Does anyone know what the current status of this task is in the official ant releases? I'd like to see these features get added so I don't have to continue maintaining my own version of the task. Mike --- Venkatesan Chandrakandan <[EMAIL PROTECTED]> wrote: > Hi all, > I am a programmer currently using Ant1.2 for my builds. But, I have > seen alot of discussion about Weblogic JSP Compilation and various options > other programmers have started to write for Weblogic JSP compilation. I find > probelms like, > > a.) These options are not found in Ant1.2 > b.) Weblogic JSP Options are not DOCUMENTED in Ant 1.2 documents, not even > in the current ON-LINE Ant documentation. > c.) Ant1.3 beta 1 & Ant 1.3 beta 2 & even Ant1.4 alpha does not contain any > document for Weblogic JSP Compilation. > d.) I could not find a consolidated email in the Ant-DEV-group or the > Ant-USER-group stating that this is the optional.jar that contains the > Weblogic JSP Compilation options and this is how the build file is written > for compiling JSP's using Weblogic 5.1 > > Note: I currently use Weblogic 5.1 and would like to compile a WHOLE > directory (with sub-directory's) of JSP's using Weblogic 5.1 JSPC. > > I would very happy if you could send me some details and the optional.jar in > this regard. Any help will be greatly appreciated. > > Thanks, > Venki. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]Title: Ant optional task manual : wljspc
wljspc
Description
Class to precompile JSP's using weblogic's jsp compiler (weblogic.jspc)
Tested only on Weblogic 4.5.1 - NT4.0 and Solaris 5.7,5.8Parameters
| Attribute | Values | Required |
|---|---|---|
| src | oot of source tree for JSP, ie, the document root for your weblogic server | Yes |
| dest | root of destination directory, what you have set as WorkingDir in the weblogic properties | Yes |
| package | start package name under which your JSP's would be compiled | Yes |
| classpath | Class path to use when compiling jsp's | Yes |
A classpath should be set which contains the weblogic classes as well as all application classes
referenced by the JSP. The system classpath is also appended when the jspc is called, so you may
choose to put everything in the classpath while calling Ant. However, since presumably the JSP's will reference
classes being build by Ant, it would be better to explicitly add the classpath in the task
The task checks timestamps on the JSP's and the generated classes, and compiles
only those files that have changed.
It follows the weblogic naming convention of putting classes in
_dirName/_fileName.class for dirname/fileName.jsp
Example
<target name="jspcompile" depends="compile">
<wljspc src="" dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp" >
<classpath>
<pathelement location="${weblogic.classpath}" />
<pathelement path="${compile.dest}" />
</classpath>
</wljspc>
</target>
Limitations
This works only on weblogic 4.5.1
It compiles the files thru the Classic compiler only.
Since it is my experience that weblogic jspc throws out of memory error on being given too
many files at one go, it is called multiple times with one jsp file each.
