author | František Kučera <franta-hg@frantovo.cz> |
Sat, 07 Jun 2014 21:57:50 +0200 | |
changeset 31 | c9f1e497132e |
parent 26 | 29b6233c66e0 |
child 32 | ecc2731a5a46 |
permissions | -rwxr-xr-x |
franta-hg@22 | 1 |
#!/bin/bash |
franta-hg@22 | 2 |
|
franta-hg@22 | 3 |
DIR="`dirname $0`/.."; |
franta-hg@22 | 4 |
|
franta-hg@22 | 5 |
STANDARD_JARS=( |
franta-hg@22 | 6 |
"$DIR/java/alt2xml-cli/dist/alt2xml-cli.jar" |
franta-hg@22 | 7 |
"$DIR/java/alt2xml-lib/dist/alt2xml-lib.jar" |
franta-hg@22 | 8 |
); |
franta-hg@22 | 9 |
|
franta-hg@22 | 10 |
PLUGINS=( |
franta-hg@22 | 11 |
"$DIR/java/alt2xml-in-properties/dist/alt2xml-in-properties.jar" |
franta-hg@23 | 12 |
|
franta-hg@23 | 13 |
"$DIR/java/alt2xml-in-json/dist/alt2xml-in-json.jar" |
franta-hg@26 | 14 |
"$DIR/../temp/lib/json_simple-1.1.jar" |
franta-hg@22 | 15 |
); |
franta-hg@22 | 16 |
|
franta-hg@22 | 17 |
for e in "${STANDARD_JARS[@]}" "${PLUGINS[@]}"; do |
franta-hg@22 | 18 |
CLASS_PATH="$CLASS_PATH:$e"; |
franta-hg@22 | 19 |
done |
franta-hg@22 | 20 |
|
franta-hg@22 | 21 |
MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI"; |
franta-hg@31 | 22 |
SAX_PARSER_FACTORY="cz.frantovo.alt2xml.ParserFactory"; |
franta-hg@22 | 23 |
|
franta-hg@31 | 24 |
java -cp "$CLASS_PATH" -D"javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY" $MAIN_CLASS "$@" |
franta-hg@22 | 25 |