velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/texen/ant TexenTask.java
Date Fri, 23 Mar 2001 01:02:24 GMT
geirm       01/03/22 17:02:24

  Modified:    src/java/org/apache/velocity/texen/ant TexenTask.java
  Log:
  Changed setTemplatePath() at suggestion of Sam Ruby to work better with
  Ant.
  
  Purpose is easier Gump monitoring of the testbed.
  
  Revision  Changes    Path
  1.18      +13 -5     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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TexenTask.java	2001/03/14 22:03:52	1.17
  +++ TexenTask.java	2001/03/23 01:02:23	1.18
  @@ -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.17 2001/03/14 22:03:52 jvanzyl Exp $
  + * @version $Id: TexenTask.java,v 1.18 2001/03/23 01:02:23 geirm Exp $
    */
   
   public class TexenTask extends Task
  @@ -160,11 +160,19 @@
        * for templates using the file template
        * loader.
        */
  -    public void setTemplatePath(String templatePath)
  -    {
  -        this.templatePath = templatePath;
  -    }
       
  +    public void setTemplatePath(File templatePath)
  +    {
  +         try 
  +         {
  +             this.templatePath = templatePath.getCanonicalPath();
  +         } 
  +         catch (java.io.IOException ioe) 
  +         {
  +             throw new BuildException(ioe);
  +         }
  +     }
  +
       /**
        * Get the path where Velocity will look
        * for templates using the file template
  
  
  

Mime
View raw message