geirm       01/12/18 12:50:47

  Modified:    examples/toolbox README.txt
  Added:       examples/toolbox Footool.java toolbox.props
  Log:
  init and update
  
  Revision  Changes    Path
  1.2       +7 -1      jakarta-velocity-dvsl/examples/toolbox/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-dvsl/examples/toolbox/README.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README.txt        2001/12/18 20:49:20     1.1
  +++ README.txt        2001/12/18 20:50:47     1.2
  @@ -1,3 +1,9 @@
   Simple example to show how to setup a toolbox.
   
  -Note that Footool.class has to be in the classpath
  +Note that you must compile the example helper tool
  +class Footool.java
  +
  +  javac Footool.java
  +
  +and then add to your classpath to run this example
  +
  
  
  
  1.1                  jakarta-velocity-dvsl/examples/toolbox/Footool.java
  
  Index: Footool.java
  ===================================================================
  import java.util.List;
  
  public class Footool
  {
      public String getFoo()
      {
          return "Hello from Foo!";
      }
  
      public List getList()
      {
          List list = new java.util.ArrayList();
  
        list.add( "red" );
        list.add( "blue" );
        list.add( "green" );
  
        return list;
      }
  }
  
  
  
  
  1.1                  jakarta-velocity-dvsl/examples/toolbox/toolbox.props
  
  Index: toolbox.props
  ===================================================================
  toolbox.contextname = toolbox
  toolbox.tool.footool = Footool
  toolbox.string.mystring = Hello there!
  toolbox.integer.myint = 7
  toolbox.string.sourcebase = ./xdocs/
  
  
  
  

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

Reply via email to