Last change
on this file since 24252 was 24252, checked in by sjm84, 13 years ago |
Reorganised the Mat extension
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[17868] | 1 | check_Java_library(){
|
---|
| 2 |
|
---|
[22202] | 3 | if [ -d "$3" ]; then
|
---|
[17868] | 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 |
|
---|
[22202] | 21 | classesdir=$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
|
---|
[17868] | 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
|
---|
[22034] | 30 | java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs:. -classpath $classesdir org.greenstone.mat.CollectionChooser
|
---|
[17868] | 31 |
|
---|
| 32 | else
|
---|
[22034] | 33 | java -Djava.library.path=$jnidir -Djava.ext.dirs=$extdirs:. -classpath $classesdir org.greenstone.mat.CollectionChooser $1
|
---|
[17868] | 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.