next up previous contents
Next: Altering build.sh Up: Using Velocity Previous: Using Velocity

Storing velocity.jar in directory lib

First thing we're going to do is to add a lib directory. Create a lib directory.

Uncomment the:

<!--
    <mkdir  dir="${deploy.home}/WEB-INF/lib"/>
    <copy todir="${deploy.home}/WEB-INF/lib">
      <fileset dir="lib"/>
    </copy>
-->
part in the build.xml file.

Copy the velocity.jar file you created during the Velocity install to your lib directory.

Try to build again.

Example:

   [marloes@escay sample]$ mkdir lib
   [marloes@escay sample]$ mv velocity-1.1-rc1.jar ./lib/
   [marloes@escay sample]$ ./build.sh
   Searching for build.xml ...
   Buildfile: /home/marloes/sample/build.xml

   prepare:
       [mkdir] Created dir: /usr/tomcat/webapps/myapp/WEB-INF/lib
        [copy] Copying 1 files to /usr/tomcat/webapps/myapp/WEB-INF/lib

   compile:

   BUILD SUCCESSFUL

   Total time: 5 seconds
   [marloes@escay sample]$



Copyright © 2001, R.M. Morriën, H.P.A.M. Snoek, M.A.C. Bakker