Yes, put build/tomcat/ant/tomcat-ant.jar in your classpath
and do something like:
<property name="jspc" value="org.apache.tomcat.ant.Tomcat3Precompiler" />
<taskdef resource="ant.properties" />
<target name="jsp">
<jspc srcdir="/foo/jsps"
destdir="tomcat_work_path/webapps/foo"
uriroot="/foo/jsps" compiler="${jspc}" >
<include name="**/*.jsp" />
<classpath refid="appropriate_classpath" />
</jspc>
<javac srcdir="tomcat_work_path/webapps/foo" >
<classpath refid="another_appropriate_classpath" />
</javac>
<jspversion srcdir="tomcat_work_path/webapps/foo" />
<!-- one can also delete the .javas from the work dir if desired -->
</target>
The 'Tomcat3Precompiler' wraps the standards jspc, but
mangles the names with a version number (foo_1).
The 'jspversion' task a creates .ver file for every class
file of the form name_number.class
Keith
| -----Original Message-----
| From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
| Sent: Friday, May 17, 2002 8:06 AM
| To: Tomcat Developers List
| Subject: RE: cvs commit: jakarta-tomcat RELEASE-NOTES-3.3.2.txt
|
|
| > (Re-) Open the log files with "append", so that log
| >rotation can
| > be configured to be other than daily.
| > +
| > + Package an Ant compiler adapter that compiles JSPs
| >with the correct
| > + naming convention and an Ant task which creates
| >.ver files. These
| > + tasks allow the Tomcat work directory to be
| >pre-populated with
| > + compiled JSPs.
| >
|
| Great, Do you have a task parm with the work directory location ?
|
| --
| To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
| For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
|
|
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>