jvanzyl     00/11/27 10:16:54

  Modified:    src/java/org/apache/velocity/test/misc Test.java
  Log:
  - the little incremental test case, now sets the the default
    properties and then turns on all the logging stack traces.
  
  Revision  Changes    Path
  1.6       +7 -2      
jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Test.java 2000/11/04 16:20:59     1.5
  +++ Test.java 2000/11/27 18:16:51     1.6
  @@ -70,7 +70,7 @@
    * test all the directives support by Velocity.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Test.java,v 1.5 2000/11/04 16:20:59 geirm Exp $
  + * @version $Id: Test.java,v 1.6 2000/11/27 18:16:51 jvanzyl Exp $
    */
   public class Test
   {
  @@ -91,7 +91,12 @@
   
           try
           {
  -            Runtime.init("velocity.properties");
  +            Runtime.setDefaultProperties();
  +            Runtime.setProperty(Runtime.RUNTIME_LOG_ERROR_STACKTRACE, "true");
  +            Runtime.setProperty(Runtime.RUNTIME_LOG_WARN_STACKTRACE, "true");
  +            Runtime.setProperty(Runtime.RUNTIME_LOG_INFO_STACKTRACE, "true");
  +            Runtime.init();
  +            
               if (templateFile == null)
                   templateFile = "examples/example.vm";
               Template template = Runtime.getTemplate(templateFile);
  
  
  

Reply via email to