You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2003/04/28 23:17:55 UTC

DO NOT REPLY [Bug 19401] New: - Velocity Tools - LayoutServlet Example and Build.xml patch

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19401>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19401

Velocity Tools - LayoutServlet Example and Build.xml patch

           Summary: Velocity Tools - LayoutServlet Example and Build.xml
                    patch
           Product: Velocity
           Version: 1.3.1-rc2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Documentation
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: tcolson@cisco.com


This isn't perfect, but it's a possible start. I will include a zip with a 
bare bones layout example, setup in the same fashion as the examples/simple 
and examples/struts. I also created a patch for build.xml to include this new 
example.

Cheers,
Timo


Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-velocity-tools/build.xml,v
retrieving revision 1.14
diff -u -r1.14 build.xml
--- build.xml   26 Apr 2003 16:50:16 -0000      1.14
+++ build.xml   28 Apr 2003 21:13:45 -0000
@@ -78,9 +78,11 @@
     <!-- Clean example applications  -->
     <ant dir="${examples.home}/simple" target="clean" inheritAll="false"/>
     <ant dir="${examples.home}/struts" target="clean" inheritAll="false"/>
+    <ant dir="${examples.home}/layout" target="clean" inheritAll="false"/>
     <delete>
       <fileset dir="${examples.home}/simple/WEB-INF/lib" includes="*.jar"/>
       <fileset dir="${examples.home}/struts/WEB-INF/lib" includes="*.jar"/>
+      <fileset dir="${examples.home}/layout/WEB-INF/lib" includes="*.jar"/>
     </delete>
     <delete>
       <fileset dir="${examples.home}" includes="*.war"/>
@@ -233,7 +235,7 @@

   <!-- Build all example applications -->
   <target name="examples"
-          depends="example.simple,example.struts"
+          depends="example.simple,example.struts,example.layout"
           description="Compiles and jars all example applications."/>


@@ -291,6 +293,28 @@
     <ant dir="${examples.home}/struts" target="all" inheritAll="false"/>
   </target>

+  <!-- Build VelocityView - Layout application -->
+  <target name="example.layout" depends="jar.view"
+          description="Compiles and jars the VelocityView Layout example 
applic
ation.">
+
+    <property name="layout.lib" value="${examples.home}/layout/WEB-INF/lib"/>
+
+    <!-- Clean up any past build -->
+    <delete file="${examples.home}/layout.war"/>
+    <delete>
+      <fileset dir="${layout.lib}" includes="velocity-tools*.jar"/>
+    </delete>
+
+    <!-- Assemble and build the layout example -->
+    <copy todir="${layout.lib}" file="${dist.dir}/${view.name}.jar"/>
+    <copy todir="${layout.lib}" file="${commons-beanutils.jar}"/>
+    <copy todir="${layout.lib}" file="${commons-collections.jar}"/>
+    <copy todir="${layout.lib}" file="${commons-digester.jar}"/>
+    <copy todir="${layout.lib}" file="${dom4j.jar}"/>
+    <copy todir="${layout.lib}" file="${velocity.jar}"/>
+
+    <ant dir="${examples.home}/layout" target="war" inheritAll="false"/>
+  </target>


 </project>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org