#!/bin/bash

# Prova batch file

PROVA_HOME="../.."
PROVA_LIBS="$PROVA_HOME/lib"

# Building the Classpath
CLASSPATH="$CLASSPATH:$PROVA_LIBS/mandarax.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/mmmysql.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/commons-collections-2.1.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/commons-lang-2.0.jar"
#CLASSPATH="$CLASSPATH:$PROVA_LIBS/jdom.jar"
#CLASSPATH="$CLASSPATH:$JORAM_LIBS/mail.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/activation.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/jms.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/joram.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/mom.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/jta.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/jndi.jar"
#CLASSPATH="$CLASSPATH:$JORAM_LIBS/xerces.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/JCup.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/log4j.jar"
CLASSPATH="$CLASSPATH:$JORAM_LIBS/ow_monolog.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/biojava.jar"
CLASSPATH="$CLASSPATH:$JADE_LIBS/base64.jar"
CLASSPATH="$CLASSPATH:$JADE_LIBS/jade.jar"
CLASSPATH="$CLASSPATH:$JADE_LIBS/jadetools.jar"
CLASSPATH="$CLASSPATH:$JADE_LIBS/http.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/xercesImpl.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/xml-apis.jar"
#CLASSPATH="$CLASSPATH:$JADE_LIBS/iiop.jar"
#CLASSPATH="$CLASSPATH:$JADE_LIBS/crimson.jar"
#CLASSPATH="$CLASSPATH:$PROVA_LIBS/xmlParsersAPI.jar"
#CLASSPATH="$CLASSPATH:$PROVA_LIBS/xml4j.jar"
#CLASSPATH="$CLASSPATH:$CONFIG_HOME"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/xercesImpl.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/xml-apis.jar"
CLASSPATH="$CLASSPATH:$PROVA_LIBS/jadeRT.jar"
CLASSPATH="$CLASSPATH:$RBSLA_LIBS/environment/junit.jar"
CLASSPATH="$CLASSPATH:$RBSLA_LIBS/jdepend/jdepend.jar"
CLASSPATH="$CLASSPATH:$RBSLA_LIBS/edu/edu.jar"
CLASSPATH="$CLASSPATH:$RBSLA_LIBS/environment/gnujaxp.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/commons-logging.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/concurrent.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/icu4j.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/jakarta-oro-2.0.5.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/jena.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/arq.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/iri.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/json.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/stax-api-1.0.jar"
CLASSPATH="$CLASSPATH:$JENA_LIBS/wstx-asl-2.8.jar"
CLASSPATH="$CLASSPATH:$PELLET_LIBS/relaxngDatatype.jar"
CLASSPATH="$CLASSPATH:$PELLET_LIBS/xsdlib.jar"
CLASSPATH="$CLASSPATH:$PELLET_LIBS/aterm-java-1.6.jar"
CLASSPATH="$CLASSPATH:$PELLET_LIBS/pellet.jar"

export CLASSPATH 

java -Xms512m -Xmx512m -XX:NewSize=256m -XX:MaxNewSize=256m ws.prova.reagent mediator password $*
