2001-08-05 14:01:30 +00:00
|
|
|
<html>
|
2005-04-29 18:58:16 +00:00
|
|
|
<head><link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2005-03-07 18:11:14 +00:00
|
|
|
<title>WLJSPC Task</title></head>
|
2001-08-05 14:01:30 +00:00
|
|
|
<body>
|
|
|
|
<h1>wljspc</h1>
|
|
|
|
<h3>Description</h3>
|
|
|
|
<p>Class to precompile JSP's using weblogic's jsp compiler (weblogic.jspc)</p>
|
|
|
|
Tested only on Weblogic 4.5.1 - NT4.0 and Solaris 5.7,5.8<br>
|
|
|
|
<h3>Parameters</h3>
|
|
|
|
<table border="1" cellPadding="2" cellSpacing="0">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Attribute</th>
|
|
|
|
<th>Values</th>
|
|
|
|
<th>Required</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>src</td>
|
2004-11-12 10:36:29 +00:00
|
|
|
<td>root of source tree for JSP, ie, the document root for your weblogic server</td>
|
2001-08-05 14:01:30 +00:00
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
dest</td>
|
|
|
|
<td> root of destination directory, what you have set as WorkingDir in the weblogic properties</td>
|
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
package</td>
|
|
|
|
<td> start package name under which your JSP's would be compiled</td>
|
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
classpath</td>
|
|
|
|
<td>Class path to use when compiling jsp's</td>
|
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
A classpath should be set which contains the weblogic classes as well as all application classes<br>
|
|
|
|
referenced by the JSP. The system classpath is also appended when the jspc is called, so you may<br>
|
|
|
|
choose to put everything in the classpath while calling Ant. However, since presumably the JSP's will reference<br>
|
|
|
|
classes being build by Ant, it would be better to explicitly add the classpath in the task<br>
|
|
|
|
<br>
|
|
|
|
The task checks timestamps on the JSP's and the generated classes, and compiles<br>
|
|
|
|
only those files that have changed.<br>
|
|
|
|
<br>
|
|
|
|
It follows the weblogic naming convention of putting classes in<br>
|
|
|
|
<b> _dirName/_fileName.class for dirname/fileName.jsp </b><br>
|
|
|
|
<br>
|
|
|
|
</p>
|
|
|
|
<h3><br>
|
|
|
|
Example<br>
|
|
|
|
</h3>
|
|
|
|
<p>
|
2002-09-04 11:05:19 +00:00
|
|
|
<pre>
|
|
|
|
<target name="jspcompile" depends="compile">
|
|
|
|
<wljspc src="c:\\weblogic\\myserver\\public_html" dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${weblogic.classpath}"/>
|
|
|
|
<pathelement path="${compile.dest}"/>
|
|
|
|
</classpath>
|
|
|
|
</wljspc>
|
2002-09-03 15:24:08 +00:00
|
|
|
</target>
|
2002-09-04 11:05:19 +00:00
|
|
|
</pre>
|
|
|
|
|
2001-08-05 14:01:30 +00:00
|
|
|
</p>
|
|
|
|
|
2001-09-08 01:05:18 +00:00
|
|
|
<h3>Limitations</h3>
|
|
|
|
<ul>
|
|
|
|
<li>This works only on weblogic 4.5.1</li>
|
|
|
|
<li>It compiles the files thru the Classic compiler only.</li>
|
|
|
|
<li>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.</li>
|
|
|
|
</ul>
|
2002-01-10 08:48:33 +00:00
|
|
|
<hr>
|
2005-03-07 18:11:14 +00:00
|
|
|
<p align="center">Copyright © 2001-2002,2004-2005 The Apache Software Foundation. All rights
|
2002-01-10 08:48:33 +00:00
|
|
|
Reserved.</p>
|
2001-08-05 14:01:30 +00:00
|
|
|
</body>
|
|
|
|
</html>
|