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

Last change on this file since 24252 was 24252, checked in by sjm84, 10 years ago

Reorganised the Mat extension

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1check_Java_library(){
2
3if [ -d "$3" ]; 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:$gsdlpath/web/WEB-INF/lib/cp.jar:$gsdlpath/web/WEB-INF/classes:$gsdlpath/lib/jni/cp.jar:lib/jfreechart.jar:lib/jcommon.jar
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.