velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/texen/ant TexenTask.java
Date Wed, 14 Mar 2001 22:03:56 GMT
jvanzyl     01/03/14 14:03:56

  Modified:    src/java/org/apache/velocity/texen/ant TexenTask.java
  Log:
  - start of the conversino of texen using the Velocity app class.
  
  Revision  Changes    Path
  1.17      +5 -7      jakarta-velocity/src/java/org/apache/velocity/texen/ant/TexenTask.java
  
  Index: TexenTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/texen/ant/TexenTask.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TexenTask.java	2001/03/05 11:48:22	1.16
  +++ TexenTask.java	2001/03/14 22:03:52	1.17
  @@ -67,9 +67,9 @@
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Task;
   
  +import org.apache.velocity.app.Velocity;
   import org.apache.velocity.context.Context;
   import org.apache.velocity.VelocityContext;
  -import org.apache.velocity.runtime.Runtime;
   import org.apache.velocity.texen.Generator;
   import org.apache.velocity.util.StringUtils;
   
  @@ -77,7 +77,7 @@
    * An ant task for generating output by using Velocity
    *
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
  - * @version $Id: TexenTask.java,v 1.16 2001/03/05 11:48:22 jvanzyl Exp $
  + * @version $Id: TexenTask.java,v 1.17 2001/03/14 22:03:52 jvanzyl Exp $
    */
   
   public class TexenTask extends Task
  @@ -286,12 +286,10 @@
               /* 
                * Setup the Velocity Runtime.
                */
  -            Runtime.setDefaultProperties();
  +            Velocity.setProperty(
  +                Velocity.FILE_RESOURCE_LOADER_PATH, templatePath);
               
  -            Runtime.setSourceProperty(
  -                Runtime.FILE_RESOURCE_LOADER_PATH, templatePath);
  -            
  -            Runtime.init();
  +            Velocity.init();
   
               /* 
                * Create the text generator.
  
  
  

Mime
View raw message