From 0bf139178affc6edbd26010b96cd727bd1396c84 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 5 Aug 2001 14:01:30 +0000 Subject: [PATCH] WLJSPC task documentation Submitted by: Avik.Sengupta@Dresdner-Bank.com git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269465 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/wljspc.html | 84 +++++++++++++++++++++++++++ docs/manual/optionaltasklist.html | 1 + 2 files changed, 85 insertions(+) create mode 100644 docs/manual/OptionalTasks/wljspc.html diff --git a/docs/manual/OptionalTasks/wljspc.html b/docs/manual/OptionalTasks/wljspc.html new file mode 100644 index 000000000..8321e8dff --- /dev/null +++ b/docs/manual/OptionalTasks/wljspc.html @@ -0,0 +1,84 @@ + + 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.8
+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeValuesRequired
srcoot of source tree for JSP, ie, the document root for your weblogic serverYes
+dest root of destination directory, what you have set as WorkingDir in the weblogic propertiesYes
+package start package name under which your JSP's would be compiledYes
+classpathClass path to use when compiling jsp'sYes
+

+
+ +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="c:\\weblogic\\myserver\\public_html" 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. + + + + + diff --git a/docs/manual/optionaltasklist.html b/docs/manual/optionaltasklist.html index fdc854233..f7fe266c7 100644 --- a/docs/manual/optionaltasklist.html +++ b/docs/manual/optionaltasklist.html @@ -44,6 +44,7 @@ Test
Visual Age for Java Tasks
Microsoft Visual SourceSafe Tasks
+Weblogic JSP Compiler
XmlValidate