#!/bin/bash
#
# Copyright (c) 2005 Achim D. Brucker, brucker@inf.ethz.ch
#
# This file is part of the OCL2.0 parser and compiler libraries
# created at Technische Universitaet Dresden (TUD), Germany.
# Visit http://dresden-ocl.sourceforge.net/ for details.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA  02111-1307  USA
#

# JAVA_HOME= 
JAVA=$JAVA_HOME/bin/java
OCL_HOME=$DRESDEN_HOME      # this should point to the top-level
                            # directory of dresden-ocl 2.0

# no user configuration below this 
for i in $OCL_HOME/lib/external/*.jar; do CLASSPATH=$i:$CLASSPATH;done
for i in $OCL_HOME/lib/external/*/*.jar; do CLASSPATH=$i:$CLASSPATH;done
for i in $OCL_HOME/lib/internal/*.jar; do CLASSPATH=$i:$CLASSPATH;done

CLASSPATH=$CLASSPATH:$OCL_HOME/resources

$JAVA -cp $CLASSPATH tudresden.ocl20.core.parser.OCL20CLI $*
