diff --git a/projects/viztool/bin/viztool b/projects/viztool/bin/viztool index 55e4414e..a7428733 100755 --- a/projects/viztool/bin/viztool +++ b/projects/viztool/bin/viztool @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: viztool,v 1.1 2001/08/12 02:52:51 mdb Exp $ +# $Id: viztool,v 1.2 2001/11/08 19:38:54 mdb Exp $ # # Sets up the classpath and invokes viztool with arguments supplied to # this script. @@ -20,6 +20,10 @@ options: list. Excluding foo.bar will not automatically exclude foo.bar.baz. [--print] + [--cpath="jar_file|directory [jar_file|directory ...]"] + A list of jar files and directories to include in the classpath + (separated by spaces). This will be globbed for you, so you can + pass in --cpath="lib/*.jar". EOH exit -1 } @@ -41,6 +45,14 @@ do EXCL=`echo $1 | sed 's:--exclude=::g'` JOPTIONS="$JOPTIONS -Dexclude=$EXCL" ;; + --cpath=*) + ELEMS=`echo $1 | sed 's:--cpath=::g'` + if [ -z "$CLASSPATH" ] ; then + export CLASSPATH=`echo $ELEMS | sed 's/ /:/g'` + else + export CLASSPATH=$CLASSPATH:`echo $ELEMS | sed 's/ /:/g'` + fi + ;; -*) echo "Unknown option: $1" exit -1