#!/bin/sh
#
# $FreeBSD: ports/deskutils/freemind/files/freemind.sh.in,v 1.1 2005/04/06 23:01:59 hq Exp $

CLASSPATH="${ADD_JARS}:${CLASSPATH}:`find "/usr/local/share/java/freemind-0.8.0/lib" -name \*.jar | tr "\n" ":"`"
FILE="`realpath "$1"`"

cd "/usr/local/share/java/freemind-0.8.0"
JAVA_VERSION="1.4+" "/usr/local/bin/java" -cp "${CLASSPATH}" freemind.main.FreeMind "${FILE}"
