You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2003/10/26 11:54:15 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/texen/ant TexenTask.java
geirm 2003/10/26 02:54:15
Modified: src/java/org/apache/velocity/texen/ant TexenTask.java
Log:
Patch from Henning that turns the cache on and sets the modification time
check to be bigger. I didn't do 2000 but 60. Happy to go longer pending
further discussion, but worry about what happens when texen is using templates
that it maybe modifying. The right way to go may be to parameterize this
so that the user can set these externally.
Revision Changes Path
1.40 +4 -11 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.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- TexenTask.java 25 Jul 2002 03:07:41 -0000 1.39
+++ TexenTask.java 26 Oct 2003 10:54:15 -0000 1.40
@@ -56,9 +56,7 @@
import java.util.StringTokenizer;
import java.util.Date;
-import java.util.Hashtable;
import java.util.Iterator;
-import java.util.Map;
import java.io.File;
import java.io.Writer;
@@ -174,11 +172,6 @@
protected boolean useClasspath;
/**
- * Path separator.
- */
- private String fileSeparator = System.getProperty("file.separator");
-
- /**
* [REQUIRED] Set the control template for the
* generating process.
*/
@@ -366,7 +359,7 @@
/**
* Set the use of the classpath in locating templates
*
- * @param boolean true means the classpath will be used.
+ * @param useClasspath true means the classpath will be used.
*/
public void setUseClasspath(boolean useClasspath)
{
@@ -446,11 +439,11 @@
ve.setProperty(
"classpath." + VelocityEngine.RESOURCE_LOADER +
- ".cache", "false");
+ ".cache", "true");
ve.setProperty(
"classpath." + VelocityEngine.RESOURCE_LOADER +
- ".modificationCheckInterval", "2");
+ ".modificationCheckInterval", "60");
}
ve.init();
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org