Project

General

Profile

« Previous | Next » 

Revision 9202

Added by Jing Tao over 9 years ago

Use the wild card in the class path. So it will not be pain if the jar files were changed.

View differences:

src/scripts/bash/authFileManager.sh
10 10
BASE=../../../
11 11
BASE_LIB=$BASE/WEB-INF/lib
12 12
BASE_WEB_INF=$BASE/WEB-INF
13
METACAT=$BASE_LIB/metacat.jar
14
COMMONS_CONFIG=$BASE_LIB/commons-configuration-1.7.jar
15
COMMONS_LOG=$BASE_LIB/commons-logging-api-1.1.jar
16
COMMONS_LANG=$BASE_LIB/commons-lang-2.6.jar
17
COMMONS_COLLECTION=$BASE_LIB/commons-collections-3.2.jar
18
COMMONS_JXPATH=$BASE_LIB/commons-jxpath-1.3.jar
19
LOG4J=$BASE_LIB/log4j-1.2.16.jar
20
UTILITIES=$BASE_LIB/utilities.jar
21
D1_COMMON=$BASE_LIB/d1_common_java-1.1.3.jar
22
XALAN=$BASE_LIB/xalan-2.7.0.jar
23
JBCRYPT=$BASE_LIB/jbcrypt-0.3m.jar
24 13

  
25 14
#run the class
26
java -cp $METACAT:$XALAN:$COMMONS_CONFIG:$COMMONS_LOG:$COMMONS_LANG:$COMMONS_COLLECTION:$COMMONS_JXPATH:$LOG4J:$UTILITIES:$D1_COMMON:$JBCRYPT edu.ucsb.nceas.metacat.authentication.AuthFile $BASE_WEB_INF "$@"
15
java -classpath "$BASE_LIB/*:" edu.ucsb.nceas.metacat.authentication.AuthFile $BASE_WEB_INF "$@"

Also available in: Unified diff