#!/bin/bash

DIR="`dirname $0`/..";

STANDARD_JARS=(
	"$DIR/java/alt2xml-cli/dist/alt2xml-cli.jar"
	"$DIR/java/alt2xml-lib/dist/alt2xml-lib.jar"
);

PLUGINS=(
	"$DIR/java/alt2xml-in-properties/dist/alt2xml-in-properties.jar"
	
	"$DIR/java/alt2xml-in-json/dist/alt2xml-in-json.jar"
	"$DIR/temp/lib/json_simple-1.1.jar"
);

for e in "${STANDARD_JARS[@]}" "${PLUGINS[@]}"; do
	CLASS_PATH="$CLASS_PATH:$e";
done

MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI";

java -cp "$CLASS_PATH" $MAIN_CLASS "$@"

