dlr         01/05/07 17:51:17

  Modified:    convert  convert-wm.sh
  Log:
  In the case where the convert.WebMacro program is run on a directory,
  Ant's DirectoryScanner is used to grab a list of WM files to convert.
  A NoClassDefFoundError was being thrown because Ant was never in the
  classpath supplied to the JVM (and we are building the classpath from
  scratch, user classpath be damned!).  We now use the Ant JAR from our
  build/lib/ directory.
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-velocity/convert/convert-wm.sh
  
  Index: convert-wm.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/convert/convert-wm.sh,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- convert-wm.sh     2001/01/18 05:13:39     1.2
  +++ convert-wm.sh     2001/05/08 00:51:16     1.3
  @@ -1,15 +1,15 @@
   #!/bin/sh
   
   [ -z $1 ] && echo \
  -          && echo "Need a template or a directory of templates to convert!" \
  +          && echo 'Need a template or a directory of templates to convert!' \
             && echo \
             && exit
   
   CLASSPATH=.
   
  -for jar in ../bin/*.jar
  +for jar in ../bin/*.jar ../build/lib/*.jar
   do
       CLASSPATH=${CLASSPATH}:${jar}
   done
   
  -java -cp ${CLASSPATH} org.apache.velocity.convert.WebMacro $1
  +java -classpath ${CLASSPATH} org.apache.velocity.convert.WebMacro $1
  
  
  

Reply via email to