From db5477a8044c21aecbc35822bd59f136ea4fbd43 Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 8 Nov 2001 19:38:54 +0000 Subject: [PATCH] Allow the explicit specification of the classpath when invoking viztool. git-svn-id: https://samskivert.googlecode.com/svn/trunk@446 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- projects/viztool/bin/viztool | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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