Author: wglass
Date: Sat Nov 12 23:03:43 2005
New Revision: 332918
URL: http://svn.apache.org/viewcvs?rev=332918&view=rev
Log:
added property to set the path for the logfile. VELOCITY-417. Thanks to
sebastian for the patch.
Modified:
jakarta/velocity/core/trunk/src/java/org/apache/velocity/texen/ant/TexenTask.java
Modified:
jakarta/velocity/core/trunk/src/java/org/apache/velocity/texen/ant/TexenTask.java
URL:
http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/texen/ant/TexenTask.java?rev=332918&r1=332917&r2=332918&view=diff
==============================================================================
---
jakarta/velocity/core/trunk/src/java/org/apache/velocity/texen/ant/TexenTask.java
(original)
+++
jakarta/velocity/core/trunk/src/java/org/apache/velocity/texen/ant/TexenTask.java
Sat Nov 12 23:03:43 2005
@@ -135,6 +135,11 @@
protected boolean useClasspath;
/**
+ * The LogFile (incl. path) to log to.
+ */
+ protected String logFile;
+
+ /**
* Property which controls whether the resource
* loader will be told to cache. Default false
*/
@@ -255,6 +260,22 @@
}
/**
+ * Sets the log file.
+ */
+ public void setLogFile(String log)
+ {
+ this.logFile = log;
+ }
+
+ /**
+ * Gets the log file.
+ */
+ public String getLogFile()
+ {
+ return this.logFile;
+ }
+
+ /**
* Set the context properties that will be
* fed into the initial context be the
* generating process starts.
@@ -427,6 +448,11 @@
".modificationCheckInterval",
resourceLoaderModificationCheckInterval);
}
+ if (this.logFile != null)
+ {
+ ve.setProperty(RuntimeConstants.RUNTIME_LOG, this.logFile);
+ }
+
ve.init();
// Create the text generator.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]