Add all jar in CLASSPATH

Alexandre Oliva oliva at dcc.unicamp.br
Thu Dec 3 10:14:34 PST 1998


On Dec  3, 1998, "Parmelan, Edouard" <EP510777 at exchange.FRANCE.NCR.com> wrote:

> The following patch add all ZIP and JAR from KAFFE_CLASSDIR in
> CLASSPATH.

> +    case "$jar" in
> +	$KAFFE_CLASSDIR/Klasses.jar | $KAFFE_CLASSDIR/pizza.jar | \
> +	$KAFFE_CLASSDIR/classes.zip | \
> +	"$KAFFE_CLASSDIR/*.jar" | "$KAFFE_CLASSDIR/*.zip" )

Careful here.  Relying on the shell performing variable-substitution
is not a good idea; most shells won't do it, AFAIK.  Better use `test
x != y && test x != z && ...'

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil



More information about the kaffe mailing list