Last change
on this file since 21279 was 17868, checked in by cc108, 16 years ago |
new Mat shell script
|
-
Property svn:executable
set to
*
|
File size:
1016 bytes
|
Line | |
---|
1 | check_Java_library(){
|
---|
2 |
|
---|
3 | if [ -d "$3" -a -d "$4" ]; then
|
---|
4 | echo "The environment has been configured correctly."
|
---|
5 | echo "Metadata Quality Analysis Tool is starting now......."
|
---|
6 | else
|
---|
7 | echo "Sorry. The environment has not configured correctly."
|
---|
8 | echo "Please use the ant command to setup the enviroment"
|
---|
9 | exit 1
|
---|
10 | fi
|
---|
11 | }
|
---|
12 |
|
---|
13 | thisdir=`pwd`
|
---|
14 |
|
---|
15 | gsdlpath=`(cd ../.. && pwd)`
|
---|
16 |
|
---|
17 | jnidir=$gsdlpath/lib/jni
|
---|
18 |
|
---|
19 | extdirs=$thisdir/lib
|
---|
20 |
|
---|
21 | classesdir=$thisdir/build/classes
|
---|
22 |
|
---|
23 | echo "Metadata Quality Analysis Tool" $thisdir
|
---|
24 | echo "Check Java Library"
|
---|
25 |
|
---|
26 | check_Java_library $thisdir $jnidir $extdirs $classesdir
|
---|
27 |
|
---|
28 |
|
---|
29 | if [ "x$1" = "x" ] ; then
|
---|
30 | java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone.gsdl3_extension.mat.CollectionChooser
|
---|
31 |
|
---|
32 | else
|
---|
33 | java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs -classpath $classesdir org.greenstone.gsdl3_extension.mat.CollectionChooser $1
|
---|
34 | fi
|
---|
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.