Changeset 6323


Ignore:
Timestamp:
06/25/15 09:44:42 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

refs #768

default config path is set via system property: configFile

command line params are not processed by the script, just passed to java
there are two optional parameters:
-c <pathToConfigFile>
-l <pathToDataRoot> ... for processing only subset of data roots from configuration file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/bin/vlo_solr_importer.sh

    r6235 r6323  
    1212fi
    1313
    14 # try to get the configuration file name from the command line options
    15 if [ 1 -eq $# ]; then
    16 CONFIG=$1
    17 else
    18 # fall back to default location
    19 echo No configuration location specified, using default
    20 CONFIG=${DIR}/"../config/VloConfig.xml"
    21 fi
     14#default configuration file
     15DFLT_CONFIG=${DIR}/"../config/VloConfig.xml"
    2216
    2317LOGDIR=${DIR}/../log/
     
    3529# to the JAVA command. Please note the a specification on the command line will
    3630# take preference over a specification as a property.
     31#
     32# to process only subset of data roots from configuration file pass the list via command line:
     33# -l path OR -l "path1 path2 ..."
     34#
    3735
    3836$JAVA -Xmx3G \
    39     -cp "${DIR}:${DIR}/vlo-importer-${project.version}-importer.jar" \
     37    -cp "${DIR}:${DIR}/vlo-importer-3.3-SNAPSHOT-importer.jar" \
     38        -DconfigFile=${DFLT_CONFIG} \
    4039    -DIMPORTER_LOG_DIR=${LOGDIR} \
    41     eu.clarin.cmdi.vlo.importer.MetadataImporter -c "$CONFIG"
     40    eu.clarin.cmdi.vlo.importer.MetadataImporter "$@"
    4241
Note: See TracChangeset for help on using the changeset viewer.