scripts/alt2xml.sh
changeset 22 23a12c58b57c
child 23 6ccf0c9b34dc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/alt2xml.sh	Sat Jun 07 15:42:48 2014 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +DIR="`dirname $0`/..";
     1.7 +
     1.8 +STANDARD_JARS=(
     1.9 +	"$DIR/java/alt2xml-cli/dist/alt2xml-cli.jar"
    1.10 +	"$DIR/java/alt2xml-lib/dist/alt2xml-lib.jar"
    1.11 +);
    1.12 +
    1.13 +PLUGINS=(
    1.14 +	"$DIR/java/alt2xml-in-properties/dist/alt2xml-in-properties.jar"
    1.15 +);
    1.16 +
    1.17 +for e in "${STANDARD_JARS[@]}" "${PLUGINS[@]}"; do
    1.18 +	CLASS_PATH="$CLASS_PATH:$e";
    1.19 +done
    1.20 +
    1.21 +MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI";
    1.22 +
    1.23 +java -cp "$CLASS_PATH" $MAIN_CLASS "$@"
    1.24 +