#!/bin/sh
# last update $Date: 2003/04/19 $
#
# jml2 -- developer's script for running the JML checker
#
# SYNOPSIS: set CLASSPATH and run JML

# If needed, change the following configuration parameters for your system
# by changing what is to the right of the equals sign (=) on the lines below
: ${JPATHSEP=';'}                           # change to ':' for Unix
: ${JFILESEP="\\"}                          # change to "/" for Unix
: ${USRLOCAL=`cygpath -wa '/usr/local'`}    # local software directory
: ${ANTLRDIR="${USRLOCAL}${JFILESEP}antlr"} # local home of Antlr
: ${GNUDIR="${USRLOCAL}${JFILESEP}gnu"}     # local dir above gnu/getops
: ${MJCDIR=`cygpath -wa "${HOME}/MJ"`}      # local home of MJC
: ${JMLDIR=`cygpath -wa "${HOME}/JML2"`}    # local home of JML
: ${PLSLDIR=`cygpath -wa "${HOME}/PLSL"`}   # local home of PLSL
: ${JMLC_XMX='256m'}

CLASSPATH=".${JPATHSEP}${ANTLRDIR}${JFILESEP}antlr.jar${JPATHSEP}${MJCDIR}${JPATHSEP}${JMLDIR}${JPATHSEP}${GNUDIR}${JPATHSEP}${JMLDIR}${JFILESEP}specs${JPATHSEP}${JPATHSEP}${PLSLDIR}${JPATHSEP}${CLASSPATH}"
export CLASSPATH

# You can use `java' or `jre -classpath "$CLASSPATH"' below
# but these have to be in your PATH
exec java -Xms128m -Xmx${JMLC_XMX} org.jmlspecs.checker.Main "$@"

# Copyright (C) 2002 Iowa State University
#
# This file is part of JML
#
# JML is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# JML 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with JML; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
