geirm 2002/07/18 20:34:01
Modified: src/java/org/apache/tools/dvsl DVSLTask.java
Log:
added putAppValue() method to allow code using the ant task directly to
add things to the context via the app value mechanism
Revision Changes Path
1.10 +9 -1
jakarta-velocity-dvsl/src/java/org/apache/tools/dvsl/DVSLTask.java
Index: DVSLTask.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity-dvsl/src/java/org/apache/tools/dvsl/DVSLTask.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DVSLTask.java 11 Jul 2002 01:29:31 -0000 1.9
+++ DVSLTask.java 19 Jul 2002 03:34:01 -0000 1.10
@@ -479,7 +479,7 @@
/**
* Sets the character encoding for output files. If not specified,
- * output is written with UTF-8 encoding.
+ * output is written with UTF-8 encodin6g.
* @param encoding Output encoding
*/
public void setOutputEncoding(String encoding)
@@ -531,6 +531,14 @@
}
validatingParser = validating;
+ }
+
+ /**
+ * Sets an application value from outside of the DVSL task
+ */
+ public void putAppValue(String name, Object o)
+ {
+ dvsl.putAppValue(name,o);
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>