#!/bin/sh
# 
# ArgoUML script
# JPackage Project <http://www.jpackage.org/>
# $Id: argouml.argouml.script,v 1.4 2002/05/06 17:44:59 guillomovitch Exp $

# Source functions library
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/argouml.conf ]; then 
  . /etc/argouml.conf
fi

# Source user prefs
if [ -f $HOME/.argoumlrc ]; then 
  . $HOME/.argoumlrc
fi

if [ ! -f $HOME/.argouml/argouml.log ]; then
  if [ ! -d $HOME/.argouml ]; then
    mkdir -p $HOME/.argouml
  fi

  touch $HOME/.argouml/argouml.log
fi

# Configuration
MAIN_CLASS=org.argouml.application.Main

# Set parameters
set_jvm
CLASSPATH=$(build-classpath antlr argouml argouml-model dresden-ocl-argo gef i18n-lib jakarta-commons-logging jmi log4j nsuml swidgets toolbar xml-commons-apis)
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
