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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to