jvanzyl     00/12/19 21:25:19

  Modified:    src/java/org/apache/velocity/runtime Runtime.java
  Log:
  - Moving package declaration to the top of the file
  - Updated the javadoc to reflect how the runtime now works.
  
  Revision  Changes    Path
  1.79      +6 -34     
jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java
  
  Index: Runtime.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- Runtime.java      2000/12/19 21:51:02     1.78
  +++ Runtime.java      2000/12/20 05:25:18     1.79
  @@ -1,3 +1,5 @@
  +package org.apache.velocity.runtime;
  +
   /*
    * The Apache Software License, Version 1.1
    *
  @@ -52,8 +54,6 @@
    * <http://www.apache.org/>.
    */
   
  -package org.apache.velocity.runtime;
  -
   import java.io.InputStream;
   import java.io.File;
   import java.io.FileInputStream;
  @@ -104,17 +104,6 @@
    * structure that developers need to be familiar with
    * in order to get Velocity to perform.
    *
  - * <pre>
  - * Runtime.init(properties);
  - *
  - * Template template = Runtime.getTemplate("template.vm");
  - *
  - * Runtime.warn(message);
  - * Runtime.info(message);
  - * Runtime.error(message);
  - * Runtime.debug(message);
  - * </pre>
  - *
    * The Runtime will also cooperate with external
    * systems like Turbine. Normally the Runtime will
    * be fully initialized from a properties file, but
  @@ -126,33 +115,16 @@
    * are to be loaded from, and where the velocity
    * log file should be placed.
    *
  - * In order for this to happen the velocity.properties
  - * file must look something like the following:
  - *
  - * runtime.log = system
  - * template.path = system
  - *
  - * Having these properties set to 'system' lets the
  - * Velocity Runtime know that an external system
  - * will set these properties and initialized 
  - * the appropriates sub systems when these properties
  - * are set.
  - *
    * So in the case of Velocity cooperating with Turbine
    * the code might look something like the following:
    *
    * <pre>
  + * Runtime.setProperties(defaultTurbineVelocityProps);
  + * Runtime.setSourceProperty(Runtime.FILE_RESOURCE_LOADER_PATH, templatePath);
    * Runtime.setProperty(Runtime.RUNTIME_LOG, pathToVelocityLog);
  - * Runtime.initializeLogger();
  - *
  - * Runtime.setProperty(Runtime.TEMPLATE_PATH, pathToTemplates);
  - * Runtime.initializeTemplateLoader();
  + * Runtime.init();
    * </pre>
    *
  - * It is simply a matter of setting the appropriate property
  - * an initializing the matching sub system.
  - *
  - *
    * -----------------------------------------------------------------------
    * N O T E S  O N  R U N T I M E  I N I T I A L I Z A T I O N
    * -----------------------------------------------------------------------
  @@ -201,7 +173,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jeff Bowden</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magusson Jr.</a>
  - * @version $Id: Runtime.java,v 1.78 2000/12/19 21:51:02 jvanzyl Exp $
  + * @version $Id: Runtime.java,v 1.79 2000/12/20 05:25:18 jvanzyl Exp $
    */
   public class Runtime implements RuntimeConstants
   {    
  
  
  

Reply via email to