hi folks,
this patch lets you pass in a file list to convert, rather then
one-at-a-time or a full directory at once.
thanks,
ms-
Index: WebMacro.java
===================================================================
RCS file:
/home/cvspublic/jakarta-velocity/src/java/org/apache/velocity/convert/WebMacro.java,v
retrieving revision 1.18
diff -u -r1.18 WebMacro.java
--- WebMacro.java 2001/06/21 23:38:55 1.18
+++ WebMacro.java 2001/07/09 19:32:30
@@ -320,8 +320,11 @@
{
if (args.length > 0)
{
- WebMacro converter = new WebMacro();
- converter.convert(args[0]);
+ for (int x=0; x < args.length; x++)
+ {
+ WebMacro converter = new WebMacro();
+ converter.convert(args[x]);
+ }
}
else
{
Index: convert-wm.sh
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/convert/convert-wm.sh,v
retrieving revision 1.5
diff -u -r1.5 convert-wm.sh
--- convert-wm.sh 2001/05/22 01:22:16 1.5
+++ convert-wm.sh 2001/07/09 19:33:18
@@ -10,4 +10,4 @@
CLASSPATH="${jar}:${CLASSPATH}"
done
-java -classpath "${CLASSPATH}" org.apache.velocity.convert.WebMacro "${1}"
+java -classpath "${CLASSPATH}" org.apache.velocity.convert.WebMacro $*