You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by nb...@apache.org on 2003/05/28 01:18:03 UTC

cvs commit: jakarta-velocity-tools build.xml

nbubna      2003/05/27 16:18:02

  Modified:    .        build.xml
  Log:
  add target for new layout example
  
  Revision  Changes    Path
  1.15      +28 -2     jakarta-velocity-tools/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/build.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- build.xml	26 Apr 2003 16:50:16 -0000	1.14
  +++ build.xml	27 May 2003 23:18:02 -0000	1.15
  @@ -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,30 @@
       <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 application.">
  +
  +    <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