[ 
https://issues.apache.org/jira/browse/VELOCITY-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henning Schmiedehausen closed VELOCITY-173.
-------------------------------------------


> Velocity Tools - LayoutServlet Example and Build.xml patch
> ----------------------------------------------------------
>
>                 Key: VELOCITY-173
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-173
>             Project: Velocity
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.3.1-rc2
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Tim Colson
>         Assigned To: Velocity-Dev List
>         Attachments: layout.zip
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to