source: other-projects/trunk/greenstone3-extension/mat/bin/script/Mat.sh@ 17405

Last change on this file since 17405 was 17405, checked in by cc108, 16 years ago

New bin folder

File size: 683 bytes
Line 
1#!/bin/sh
2
3check_java_library(){
4
5if [ -d "$3" -a -d "$4" ]; then
6 echo "The environment has been configured"
7 echo "Metadata Quality Analysis Tool will start soon"
8else
9 echo "Sorry. The environment is not configured correctly"
10 echo "Please use the ant command to setup the enviroment"
11 exit 1
12fi
13}
14
15thisdir=`pwd`
16gsdlpath=`(cd ../.. && pwd)`
17jnidir=$gsdlpath/lib/jni
18extdirs=$thisdir/lib
19classesdir=$thisdir/build/classes
20
21echo "Metadata Quality Analysis Tool" $thisdir
22echo "Check Java Library"
23
24check_java_library $thisdir $jnidir $extdirs $classesdir
25
26java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone3.ms.CollectionChooser
27
28
29
30
31
32
Note: See TracBrowser for help on using the repository browser.