Changeset 30299 for gs2-extensions

Show
Ignore:
Timestamp:
09.10.2015 17:27:09 (4 years ago)
Author:
jmt12
Message:

Making the removal of the jar file conditional on it actually being there :P

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/src/CASCADE-MAKE/HADOOPGREENSTONEINGEST.sh

    r30290 r30299  
    1010prefix=$GEXTPARALLELBUILDING_INSTALLED 
    1111 
     12library_jar_path="${GEXTPARALLELBUILDING_INSTALLED}/lib/hadoop-greenstone.jar" 
     13 
    1214# Can't build HadoopGreenstoneIngest without Greenstone 
    1315if [ "${HADOOP_VERSION}x" != "x" ] 
    1416then 
    15     rm ${GEXTPARALLELBUILDING_INSTALLED}/lib/hadoop-greenstone.jar 
     17    if [ -f "${library_jar_path}" ] 
     18    then 
     19    rm "${library_jar_path}" 
     20    fi 
    1621    pushd ${GEXTPARALLELBUILDING}/src/java/org/nzdl/gsdl/ 
    1722    rm -rf hgi_classes 
    1823    mkdir hgi_classes 
    1924    javac -cp $HADOOP_PREFIX/hadoop-core-$HADOOP_VERSION.jar -d hgi_classes *.java 
    20     jar -cvf $GEXTPARALLELBUILDING_INSTALLED/lib/hadoop-greenstone.jar -C hgi_classes/ . 
     25    jar -cvf "${library_jar_path}" -C hgi_classes/ . 
    2126    popd 
    2227else