jvanzyl 00/11/17 16:57:15
Modified: src/java/org/apache/velocity/texen/ant TexenTask.java
Log:
- set the template path in the generator so it can be accessed
from within worker/control templates.
Revision Changes Path
1.5 +3 -2
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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TexenTask.java 2000/11/16 23:03:50 1.4
+++ TexenTask.java 2000/11/18 00:57:14 1.5
@@ -76,7 +76,7 @@
* An ant task for generating output by using Velocity
*
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: TexenTask.java,v 1.4 2000/11/16 23:03:50 jvanzyl Exp $
+ * @version $Id: TexenTask.java,v 1.5 2000/11/18 00:57:14 jvanzyl Exp $
*/
public abstract class TexenTask extends Task
@@ -164,7 +164,8 @@
// Create the text generator.
Generator generator = Generator.getInstance();
- generator.setProperty(Generator.PATH_OUTPUT,outputDirectory);
+ generator.setOutputPath(outputDirectory);
+ generator.setTemplatePath(templatePath);
// Make sure the output directory exists, if it doesn't
// then create it.