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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user