Last change
on this file since 30299 was 30299, checked in by jmt12, 9 years ago |
Making the removal of the jar file conditional on it actually being there :P
|
-
Property svn:executable
set to
*
|
File size:
744 bytes
|
Rev | Line | |
---|
[27417] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | package=HadoopGreenstoneIngest
|
---|
| 4 | version=
|
---|
| 5 |
|
---|
| 6 | progname=$0
|
---|
| 7 |
|
---|
| 8 | source ../cascade-make/lib/cascade-lib.bash GEXTPARALLELBUILDING ../.. $*
|
---|
| 9 |
|
---|
| 10 | prefix=$GEXTPARALLELBUILDING_INSTALLED
|
---|
| 11 |
|
---|
[30299] | 12 | library_jar_path="${GEXTPARALLELBUILDING_INSTALLED}/lib/hadoop-greenstone.jar"
|
---|
| 13 |
|
---|
[30290] | 14 | # Can't build HadoopGreenstoneIngest without Greenstone
|
---|
| 15 | if [ "${HADOOP_VERSION}x" != "x" ]
|
---|
| 16 | then
|
---|
[30299] | 17 | if [ -f "${library_jar_path}" ]
|
---|
| 18 | then
|
---|
| 19 | rm "${library_jar_path}"
|
---|
| 20 | fi
|
---|
[30290] | 21 | pushd ${GEXTPARALLELBUILDING}/src/java/org/nzdl/gsdl/
|
---|
| 22 | rm -rf hgi_classes
|
---|
| 23 | mkdir hgi_classes
|
---|
| 24 | javac -cp $HADOOP_PREFIX/hadoop-core-$HADOOP_VERSION.jar -d hgi_classes *.java
|
---|
[30299] | 25 | jar -cvf "${library_jar_path}" -C hgi_classes/ .
|
---|
[30290] | 26 | popd
|
---|
| 27 | else
|
---|
| 28 | echo "No Hadoop version specified... skipping!"
|
---|
| 29 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.