giacomo 01/02/14 16:55:41
Modified: . Tag: xml-cocoon2 build.xml
Log:
Added a target to speed up development. I was tired of stoping and starting
my Tomcat. I wasn't sure to commit it but, hey, it's CVS, so any commiter can
rollback
Do a "build -Dinclude.webapp.libs=yes webapp-local" and add a Context to you
servlet engine pointing to $COCOON_HOME/build/cocoon/webapp. This way you can
almos let you Tomcat run during the testing of the code. At best use the
following URL to reinstanciate C2 directly
http://localhost:8080/cocoo/?cocoon-reload=yes
This will force the CocoonServlet to reinstantiate a new Cocoon object
Revision Changes Path
No revision
No revision
1.6.2.55 +11 -0 xml-cocoon/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/build.xml,v
retrieving revision 1.6.2.54
retrieving revision 1.6.2.55
diff -u -r1.6.2.54 -r1.6.2.55
--- build.xml 2001/02/14 05:08:40 1.6.2.54
+++ build.xml 2001/02/15 00:55:40 1.6.2.55
@@ -348,6 +348,17 @@
</target>
<!-- ===================================================================
-->
+ <!-- Creates a local webapp directly useable as a servlet context
-->
+ <!-- ===================================================================
-->
+ <target name="webapp-local" depends="prepare-webapp, prepare-webapp-libs"
+ description="Generates a local webapp directory usable as servlet
context for quicker turn around">
+ <!-- delete file="${build.war}/WEB-INF/lib/${name}-${version}.jar"/ -->
+ <copy todir="${build.war}/WEB-INF/classes">
+ <fileset dir="${build.dest}"/>
+ </copy>
+ </target>
+
+ <!-- ===================================================================
-->
<!-- Removes existing uncompressed webapp
-->
<!-- ===================================================================
-->
<target name="remove-webapp" if="remove.webapp" description="Removes
existing uncompressed webapp">