scripts/alt2xml.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 07 Jun 2014 18:41:15 +0200
changeset 28 f5e8eeffdfb5
parent 26 29b6233c66e0
child 31 c9f1e497132e
permissions -rwxr-xr-x
odstranění zbytečných výpisů
     1 #!/bin/bash
     2 
     3 DIR="`dirname $0`/..";
     4 
     5 STANDARD_JARS=(
     6 	"$DIR/java/alt2xml-cli/dist/alt2xml-cli.jar"
     7 	"$DIR/java/alt2xml-lib/dist/alt2xml-lib.jar"
     8 );
     9 
    10 PLUGINS=(
    11 	"$DIR/java/alt2xml-in-properties/dist/alt2xml-in-properties.jar"
    12 	
    13 	"$DIR/java/alt2xml-in-json/dist/alt2xml-in-json.jar"
    14 	"$DIR/../temp/lib/json_simple-1.1.jar"
    15 );
    16 
    17 for e in "${STANDARD_JARS[@]}" "${PLUGINS[@]}"; do
    18 	CLASS_PATH="$CLASS_PATH:$e";
    19 done
    20 
    21 MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI";
    22 
    23 java -cp "$CLASS_PATH" $MAIN_CLASS "$@"
    24