I am wanting to add a Jsp service to Turbine.  One problem though is that it
requires servlet 2.2 in order to compile and work.  Is it acceptable to
alter build-turbine.xml as shown below, so that the Jsp files do not get
copied to the build directory?  It does work.

cvs -z9 diff -u build-turbine.xml
Index: build-turbine.xml
===================================================================
RCS file: /products/cvs/turbine/turbine/build/build-turbine.xml,v
retrieving revision 1.25
diff -u -r1.25 build-turbine.xml
--- build-turbine.xml 2000/09/18 21:49:25 1.25
+++ build-turbine.xml 2000/09/21 17:10:39
@@ -39,6 +39,8 @@
         <echo message="java.class.path = ${java.class.path}"/>
         <echo message="java.home = ${java.home}"/>
         <echo message="user.home = ${user.home}"/>
+
+        <available classname="javax.servlet.jsp.PageContext"
property="jsdk2.2"/>
     </target>

     <!--
================================================================== -->
@@ -72,13 +74,24 @@

         <copydir src="${src.java.dir}/org" dest="${build.src}/org"
             includes="**/*.java **/*.properties **/package.html"
+   excludes="**/*Jsp*.java **/jsp/**"
             filtering="on"/>
     </target>

     <!--
=================================================================== -->
+    <!-- Adds Jsp related files to the build
          -->
+    <!--
=================================================================== -->
+    <target name="prepare-jsp" depends="prepare" if="jsdk2.2">
+        <copydir src="${src.java.dir}/org" dest="${build.src}/org"
+            includes="**/*Jsp*.java **/jsp/**"
+            filtering="on"/>
+    </target>
+
+
+    <!--
=================================================================== -->
     <!-- Compiles the source
          -->
     <!--
=================================================================== -->
-    <target name="compile" depends="prepare">
+    <target name="compile" depends="prepare, prepare-jsp">
         <javac srcdir="${build.src}"
             destdir="${build.dest}"
      excludes="**/package.html"





------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to