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

Last change on this file since 22171 was 22034, checked in by sjm84, 14 years ago

Fixed the script not being able to find global.properties, this may need to be changed in the future.

  • Property svn:executable set to *
File size: 988 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.