2018-12-21 11:20:43 +01:00
|
|
|
<!DOCTYPE html>
|
2006-09-11 04:19:00 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
2019-05-25 13:41:47 +02:00
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
2006-09-11 04:19:00 +00:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2018-12-21 11:20:43 +01:00
|
|
|
<html lang="en">
|
2018-01-22 23:52:21 +01:00
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
|
|
|
<title>WLJSPC Task</title>
|
|
|
|
</head>
|
2001-08-05 14:01:30 +00:00
|
|
|
<body>
|
|
|
|
<h1>wljspc</h1>
|
|
|
|
<h3>Description</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Class to precompile JSP's using WebLogic JSP compiler (<code>weblogic.jspc</code>)</p>
|
|
|
|
<p>Tested only on WebLogic 4.5.1—NT 4.0 and Solaris 7 & 8</p>
|
2001-08-05 14:01:30 +00:00
|
|
|
<h3>Parameters</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<table class="attr">
|
|
|
|
<thead>
|
2001-08-05 14:01:30 +00:00
|
|
|
<tr>
|
2018-05-15 10:29:27 +02:00
|
|
|
<th scope="col">Attribute</th>
|
|
|
|
<th scope="col">Values</th>
|
|
|
|
<th scope="col">Required</th>
|
2001-08-05 14:01:30 +00:00
|
|
|
</tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2001-08-05 14:01:30 +00:00
|
|
|
<tr>
|
|
|
|
<td>src</td>
|
2018-02-28 07:58:59 +01: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>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>dest</td>
|
|
|
|
<td>root of destination directory, what you have set as <code>WorkingDir</code> in the
|
2018-03-01 06:44:53 +01:00
|
|
|
WebLogic properties</td>
|
2001-08-05 14:01:30 +00:00
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>package</td>
|
|
|
|
<td>start package name under which your JSPs would be compiled</td>
|
2001-08-05 14:01:30 +00:00
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>classpath</td>
|
|
|
|
<td>Class path to use when compiling JSPs</td>
|
2001-08-05 14:01:30 +00:00
|
|
|
<td>Yes</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>A classpath should be set which contains the WebLogic classes as well as all application classes
|
|
|
|
referenced by JSP. The system classpath is also appended when the <code>jspc</code> is called, so
|
|
|
|
you may choose to put everything in the classpath while calling Apache Ant. However, since
|
|
|
|
presumably JSPs will reference classes being build by Ant, it would be better to explicitly add the
|
|
|
|
classpath in the task.</p>
|
|
|
|
<p>The task checks timestamps on the JSP's and the generated classes, and compiles only those files
|
|
|
|
that have changed.</p>
|
|
|
|
<p>It follows the WebLogic naming convention of putting classes in <samp>_dirName/_fileName.class
|
|
|
|
for dirname/fileName.jsp</samp></p>
|
2018-01-22 23:52:21 +01:00
|
|
|
<h3>Example</h3>
|
2002-09-04 11:05:19 +00:00
|
|
|
<pre>
|
|
|
|
<target name="jspcompile" depends="compile">
|
2019-03-01 22:34:05 +01:00
|
|
|
<wljspc src="c:\\weblogic\\myserver\\public_html" dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp">
|
2002-09-04 11:05:19 +00:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="${weblogic.classpath}"/>
|
|
|
|
<pathelement path="${compile.dest}"/>
|
|
|
|
</classpath>
|
|
|
|
</wljspc>
|
2018-02-28 07:58:59 +01:00
|
|
|
</target></pre>
|
2002-09-04 11:05:19 +00:00
|
|
|
|
2001-09-08 01:05:18 +00:00
|
|
|
<h3>Limitations</h3>
|
|
|
|
<ul>
|
2018-02-28 07:58:59 +01:00
|
|
|
<li>This works only on WebLogic 4.5.1</li>
|
|
|
|
<li>It compiles the files through the Classic compiler only.</li>
|
|
|
|
<li>Since it is my experience that <code>weblogic.jspc</code> 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>
|
2001-09-08 01:05:18 +00:00
|
|
|
</ul>
|
2006-09-11 04:33:25 +00:00
|
|
|
|
2001-08-05 14:01:30 +00:00
|
|
|
</body>
|
|
|
|
</html>
|