You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by si...@apache.org on 2002/05/22 10:18:39 UTC

cvs commit: jakarta-velocity-tools/view/examples/simple/WEB-INF/lib velocity-tools-view-0.3.jar

sidler      02/05/22 01:18:39

  Modified:    view     README.txt build.xml
               view/examples/simple build.xml
               view/examples/simple/WEB-INF toolbox.xml
  Removed:     view/examples/simple/WEB-INF/lib velocity-tools-view-0.3.jar
  Log:
  Fixed application example in view package:
  - Updated toolbox.xml to latest version
  - Removed velocity-tools-view-*.jar from CVS. This library is now
    automatically added when the package is build. This way, the
    example will alway be up to date.
  - Revised instructions to build the package and get the example
    running.
  
  Revision  Changes    Path
  1.5       +40 -11    jakarta-velocity-tools/view/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/view/README.txt,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- README.txt	15 Apr 2002 18:30:29 -0000	1.4
  +++ README.txt	22 May 2002 08:18:39 -0000	1.5
  @@ -10,20 +10,49 @@
   and reuse of view tools.
   
   
  -Build and JAR
  +Build Package
   -------------
  -An ant script is provided to build and jar the package.
  +An ant script is provided to build and jar the package. Prerequisites are:
   
  -> ant compile
  -> ant jar
  +o Ant 1.4.1 or higher 
  +o JDK 1.3.1 or higher
   
  +Simply execute ant with the default target:
   
  -Documentation
  --------------
  -To generate the documentation for this package, follow these steps:
  +> ant 
  +
  +This generates a jar file velocity-tools-view-*.jar in the local directory,
  +writes a copy of velocity-tools-view-*.jar to the project's jar library 
  +(../lib/), and generates the documentation under the docs directory.
  +
  +
  +
  +Application Example
  +-------------------
  +
  +A simple application example has been included to demonstrate the use of the
  +VelocityViewServlet with automatically loaded view tools.
  +
  +To run the example you need:
  +
  +o Ant 1.4.1 or higher
  +o JDK 1.3.1 or higher
  +o Tomcat 3.X, Tomcat 4.X or a comparable servlet runner to run the
  +  examples.
  +
  +To build a deployable version of the example follow these steps:
  +
  +1) Build the View package as outlined in the first section
  +2) Change to directory examples/simple
  +3) Use ant to build a deployable version: 
  +   
  +   > ant
  +  
  +This generates a file simple.war file in directory 'examples'.
  +Deploy this .war file to the webapps directory of your servlet
  +runner and restart. Now point a web browser at:
   
  -> ant docs
  -> ant javadocs
  -> ant javadocs-velservlet
  +http://<server>:<port>/simple/index.vm
   
  -Then look for the generated documentation in the 'doc' subdirectory.
  +  
  +Please send your feedback to velocity-user@jakarta.apache.org. 
  \ No newline at end of file
  
  
  
  1.13      +38 -1     jakarta-velocity-tools/view/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/view/build.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build.xml	10 May 2002 05:42:18 -0000	1.12
  +++ build.xml	22 May 2002 08:18:39 -0000	1.13
  @@ -43,6 +43,9 @@
     <!-- The docs destination directory  -->
     <property name="docs.dest"             value="${basedir}/docs"/>
   
  +  <!-- Directory where examples are located  -->
  +  <property name="examples.home"         value="${basedir}/examples"/>
  +
   
   <!-- ========== Compiler Defaults ========================================= -->
   
  @@ -144,6 +147,14 @@
       </delete>
   
       <delete>
  +        <fileset dir="${examples.home}/simple/WEB-INF/lib" includes="velocity-tools-view*.jar"/>
  +    </delete>
  +
  +    <delete>
  +      <fileset dir="${examples.home}" includes="*.war"/>
  +    </delete>
  +
  +    <delete>
         <fileset dir="${basedir}" includes="**/*.bak"/>
       </delete>
   
  @@ -153,7 +164,7 @@
     <!-- ================================================================== -->
     <!-- A L L                                                              -->
     <!-- ================================================================== -->
  -  <target name="all" depends="jar,install-jar,docs,javadocs"
  +  <target name="all" depends="jar,install-jar,docs,javadocs,javadocs-velservlet,examples"
      description="Build entire project"/>
   
   
  @@ -261,6 +272,32 @@
             <replacefilter token="@@@version@@@" value="${project.version}"/>
             <replacefilter token="@@@date@@@" value="${project.date}"/>
         </replace>
  +
  +  </target>
  +
  +
  +  <!-- ================================================================== -->
  +  <!-- E X A M P L E S                                                    -->
  +  <!-- ================================================================== -->
  +  <target name="examples" depends="jar,install-jar,docs,javadocs" 
  +    description="Setup example application">
  +
  +      <!-- Setup example applications -->
  +
  +      <!-- Clean away old *.wars if any -->
  +      <delete>
  +        <fileset dir="${examples.home}" includes="*.war"/>
  +      </delete>
  +      
  +      <!-- Deploy jars -->
  +      <delete>
  +          <fileset dir="${examples.home}/simple/WEB-INF/lib" includes="velocity-tools-view*.jar"/>
  +      </delete>
  +      <copy todir="${examples.home}/simple/WEB-INF/lib" filtering="no">
  +        <fileset dir="${project.repository}">
  +          <include name="velocity-tools-view*.jar"/>
  +        </fileset>
  +      </copy>
   
     </target>
   
  
  
  
  1.4       +21 -12    jakarta-velocity-tools/view/examples/simple/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/view/examples/simple/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	9 Jan 2002 11:26:39 -0000	1.3
  +++ build.xml	22 May 2002 08:18:39 -0000	1.4
  @@ -1,16 +1,7 @@
   <project name="Velocity Tools" default="war" basedir=".">
   
   
  -<!--
  - *
  - *      Build file for Struts Velocity.
  - *
  - *      Gabriel Sidler, sidler@teamup.ch
  - *      December 8. 2001
  - *
  --->
  -
  -  <!-- *** ENVIRONMENT ******************************************************* -->
  +<!-- ========== Initialize Properties ===========================+======= -->
   
     <property name="DEV"      value="${basedir}/"/>
     <property name="SRC"      value="${basedir}/WEB-INF/src"/>
  @@ -25,15 +16,23 @@
       </fileset>
     </path>
   
  -  <!-- *** TARGETS ************************************************************* -->
   
   
  +<!-- ========== Executable Targets =_==================================== -->
  +
  +
  +  <!-- ================================================================== -->
  +  <!-- I N I T                                                            -->
  +  <!-- ================================================================== -->
     <target name="init">
       <!-- Create the time stamp -->
       <tstamp/>
     </target>
   
   
  +  <!-- ================================================================== -->
  +  <!-- H E L P                                                            -->
  +  <!-- ================================================================== -->
     <target name="help" depends="init">
       <!-- Print usage information -->
       <echo> </echo>
  @@ -45,13 +44,16 @@
       <echo>                                                                  </echo>
       <echo>  clean    Clean dev tree and previously generated distributions. </echo>
       <echo>                                                                  </echo>
  -    <echo>  war   Pack the entire application into a war file.              </echo>
  +    <echo>  war      Pack the entire application into a war file.           </echo>
       <echo>                                                                  </echo>
       <echo>  help     Print this help information.                           </echo>
       <echo>                                                                  </echo>
     </target>
   
   
  +  <!-- ================================================================== -->
  +  <!-- C O M P I L E                                                              -->
  +  <!-- ================================================================== -->
     <target name="compile" depends="">
       <!-- Compile the java code from ${SRC} into ${CLASSES} -->
       <javac srcdir="${SRC}"
  @@ -63,9 +65,13 @@
     </target>
   
   
  +  <!-- ================================================================== -->
  +  <!-- W A R                                                              -->
  +  <!-- ================================================================== -->
     <target name="war" depends="init, clean, compile">
       <jar jarfile="${basedir}/../simple.war" basedir="${DEV}"/>
   
  +    <echo>                                                  </echo>
       <echo>  A WAR file (Web ARchive) was created for you in </echo>
       <echo>  the directory above. (/examples)  It is called  </echo>
       <echo>                                                  </echo>
  @@ -85,6 +91,9 @@
     </target>
   
   
  +  <!-- ================================================================== -->
  +  <!-- C L E A B                                                          -->
  +  <!-- ================================================================== -->
     <target name="clean">
       <!-- remove old class files -->
       <delete>
  
  
  
  1.3       +2 -6      jakarta-velocity-tools/view/examples/simple/WEB-INF/toolbox.xml
  
  Index: toolbox.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/view/examples/simple/WEB-INF/toolbox.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- toolbox.xml	7 May 2002 09:02:06 -0000	1.2
  +++ toolbox.xml	22 May 2002 08:18:39 -0000	1.3
  @@ -2,14 +2,10 @@
   
   <toolbox>
   
  -  <tools>
  -
  -   <object>
  +  <tool>
        <key>toytool</key>
        <class>ToyTool</class>
  -   </object>
  -
  -  </tools>
  +  </tool>
   
   </toolbox>
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>