jvanzyl     00/10/24 17:20:47

  Added:       test/misc compile.sh dump.sh test.sh velocity.properties
  Log:
  - adding little test scripts back in for incremental testing.
  
  Revision  Changes    Path
  1.1                  jakarta-velocity/test/misc/compile.sh
  
  Index: compile.sh
  ===================================================================
  #!/bin/sh
  
  CLASSPATH=.:../../bin/classes
  
  for jar in ../../build/lib/*.jar
  do
      CLASSPATH=${CLASSPATH}:${jar}
  done
  
  java -cp ${CLASSPATH} org.apache.velocity.runtime.compiler.Compiler $1
  
  
  
  1.1                  jakarta-velocity/test/misc/dump.sh
  
  Index: dump.sh
  ===================================================================
  #!/bin/sh
  
  CLASSPATH=.:../../bin/classes
  
  for jar in ../../build/lib/*.jar
  do
      CLASSPATH=${CLASSPATH}:${jar}
  done
  
  java -cp ${CLASSPATH} org.apache.velocity.test.view.TemplateNodeView $1 > output.dump
  
  
  
  1.1                  jakarta-velocity/test/misc/test.sh
  
  Index: test.sh
  ===================================================================
  #!/bin/sh
  
  CLASSPATH=.:../../bin/classes
  
  for jar in ../../build/lib/*.jar
  do
      CLASSPATH=${CLASSPATH}:${jar}
  done
  
  java -cp ${CLASSPATH} org.apache.velocity.test.misc.Test $1 > output 2>&1
  
  
  
  1.1                  jakarta-velocity/test/misc/velocity.properties
  
  Index: velocity.properties
  ===================================================================
  ##
  # Properties for the template loader
  ##
  
  runtime.log = velocity.log
  
  template.loader=org.apache.velocity.runtime.loader.FileTemplateLoader
  
  template.modificationCheckInterval = 2
  
  # #
  # Path to templates.
  # Default=current directory 
  ## 
  template.path=.
  
  # #
  # Cache the templates?
  # #
  template.cache=false
  
  # Options for the FastWriter
  template.encoding = UTF8
  template.asciihack = true
  
  
  # This is for #foreach loops. You can
  # retrieve the current number of the item
  # being operated on by using the special
  # $velocityCount variable. Here you can specify
  # what to start the counter at 0 or 1.
  counter.initial.value = 1
  
  # You can name what the counter
  # variable can be accessed as.
  counter.name = velocityCount
  
  # The value for the default content type to return
  # in VelocityServlet
  default.contentType=text/html
  
  
  

Reply via email to