#!/bin/sh
#
# $FreeBSD: ports/devel/openorb/files/launcher.sh,v 1.1 2004/11/27 23:28:52 hq Exp $

IAM="`/usr/bin/basename "$0"`"

case "${IAM}" in
	openorb-idl_compiler)
		MAIN_CLASS=org.openorb.compiler.IdlCompiler
	;;
	openorb-naming_service)
		MAIN_CLASS=org.openorb.util.MapNamingContext
	;;
	*)
		echo "ERROR: command not supported" >&2
		exit 1
	;;
esac

JAVA_VERSION="1.3+" "/usr/local/bin/java" -classpath "/usr/local/share/java/classes/openorb.jar:/usr/local/share/java/classes/openorb_examples.jar:/usr/local/share/java/classes/openorb_test.jar:/usr/local/share/java/classes/openorb_tools.jar:/usr/local/share/java/classes/excalibur-configuration.jar:/usr/local/share/java/classes/avalon-framework.jar:/usr/local/share/java/classes/logkit.jar:/usr/local/share/java/classes/xercesImpl.jar:/usr/local/share/java/classes/xml-apis.jar" "${MAIN_CLASS}" "$@"
