Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | check_java_library(){
|
---|
4 |
|
---|
5 | if [ -d "$3" -a -d "$4" ]; then
|
---|
6 | echo "The environment has been configured"
|
---|
7 | echo "Metadata Quality Analysis Tool will start soon"
|
---|
8 | else
|
---|
9 | echo "Sorry. The environment is not configured correctly"
|
---|
10 | echo "Please use the ant command to setup the enviroment"
|
---|
11 | exit 1
|
---|
12 | fi
|
---|
13 | }
|
---|
14 |
|
---|
15 | thisdir=`pwd`
|
---|
16 | gsdlpath=`(cd ../.. && pwd)`
|
---|
17 | jnidir=$gsdlpath/lib/jni
|
---|
18 | extdirs=$thisdir/lib
|
---|
19 | classesdir=$thisdir/build/classes
|
---|
20 |
|
---|
21 | echo "Metadata Quality Analysis Tool" $thisdir
|
---|
22 | echo "Check Java Library"
|
---|
23 |
|
---|
24 | check_java_library $thisdir $jnidir $extdirs $classesdir
|
---|
25 |
|
---|
26 | java -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.