root/gs2-extensions/parallel-building/trunk/src/src/CASCADE-MAKE/HADOOPGREENSTONEINGEST.sh @ 27417

Revision 27417, 0.5 KB (checked in by jmt12, 7 years ago)

A 'pseudo'-CASCASE-MAKE file for building java code. It doesn't really use the CASCADE-MAKE library but makes shell calls directly

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=HadoopGreenstoneIngest
4version=
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTPARALLELBUILDING ../.. $*
9
10prefix=$GEXTPARALLELBUILDING_INSTALLED
11
12rm ${GEXTPARALLELBUILDING_INSTALLED}/lib/hadoop-greenstone.jar
13pushd ${GEXTPARALLELBUILDING}/src/java/org/nzdl/gsdl/
14rm -rf hgi_classes
15mkdir hgi_classes
16javac -cp $HADOOP_PREFIX/hadoop-core-$HADOOP_VERSION.jar -d hgi_classes HadoopGreenstoneIngest.java
17jar -cvf $GEXTPARALLELBUILDING_INSTALLED/lib/hadoop-greenstone.jar -C hgi_classes/ .
18popd
Note: See TracBrowser for help on using the browser.