source: gs3-extensions/mat/trunk/Mat.sh@ 22018

Last change on this file since 22018 was 21940, checked in by sjm84, 14 years ago

Modified Mat.sh after the collection name change

  • Property svn:executable set to *
File size: 984 bytes
Line 
1check_Java_library(){
2
3if [ -d "$3" -a -d "$4" ]; then
4 echo "The environment has been configured correctly."
5 echo "Metadata Quality Analysis Tool is starting now......."
6else
7 echo "Sorry. The environment has not configured correctly."
8 echo "Please use the ant command to setup the enviroment"
9 exit 1
10fi
11}
12
13thisdir=`pwd`
14
15gsdlpath=`(cd ../.. && pwd)`
16
17jnidir=$gsdlpath/lib/jni
18
19extdirs=$thisdir/lib
20
21classesdir=$thisdir/build/classes
22
23echo "Metadata Quality Analysis Tool" $thisdir
24echo "Check Java Library"
25
26check_Java_library $thisdir $jnidir $extdirs $classesdir
27
28
29if [ "x$1" = "x" ] ; then
30java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone.mat.CollectionChooser
31
32else
33java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone.mat.CollectionChooser $1
34fi
35
36#java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone.gsdl3_extension.mat.CollectionChooser
37
Note: See TracBrowser for help on using the repository browser.