jvanzyl 01/08/29 09:41:53
Modified: test/texen-classpath/jar-contents Control.vm
Added: test/texen-classpath/jar-contents book.vm
Log:
- making changes to allow taking values from a properties file that
lives on the classpath. all in an attempt to make torque work
from a JAR.
Revision Changes Path
1.3 +4 -1 jakarta-velocity/test/texen-classpath/jar-contents/Control.vm
Index: Control.vm
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/texen-classpath/jar-contents/Control.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Control.vm 2001/08/29 16:37:08 1.2
+++ Control.vm 2001/08/29 16:41:53 1.3
@@ -10,4 +10,7 @@
#set ( $sourceFile = "Test.txt" )
$generator.parse("Test.vm",$sourceFile)
-#set ( $dbprops = $properties.load("test.props") )
+#set ( $props = $properties.load("test.props") )
+
+#set ( $sourceFile = "book.txt" )
+$generator.parse("book.vm",$sourceFile)
1.1 jakarta-velocity/test/texen-classpath/jar-contents/book.vm
Index: book.vm
===================================================================
This is the book of the week:
Title: $props.get("title")
Author: $props.get("author")
Publisher: $props.get("publisher")
ISBN: $props.get("isbn")