mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
50ed1fe2e3
list for Jython compiled files [1] - Update to bsd.java.mk 2.0 (actually the port didn't even use bsd.java.mk at all) - Use DATADIR=${JAVASHAREDIR} and %%DATADIR%% - Use a FreeBSD specific launcher with full support for javavmwrapper features - Remove some '@' to let the user know what is happening - Add $FreeBSD$ tags PR: 85438 [1] Submitted by: Vasil Dimov <vd@datamax.bg> [1] Reviewed by: Vasil Dimov <vd@datamax.bg>
25 lines
513 B
Bash
25 lines
513 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
JEXT_HOME="${JEXT_HOME:-"%%DATADIR%%"}"
|
|
|
|
if [ "$1" = "--help" ] ; then
|
|
echo "Usage: jext [files]"
|
|
exit 0
|
|
fi
|
|
|
|
# Create user directory
|
|
JEXT_USER_HOME="${HOME}/.jext"
|
|
if [ ! -d "${JEXT_USER_HOME}" ] ; then
|
|
mkdir -p "${JEXT_USER_HOME}/xinsert"
|
|
fi
|
|
|
|
# Run
|
|
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" \
|
|
${JAVA_OPTS} \
|
|
-Dpython.home="${JEXT_HOME}/lib" \
|
|
-classpath "${JEXT_HOME}/lib/jython.jar":"${JEXT_HOME}/lib/dawn.jar":"${JEXT_HOME}/lib/jext.jar" \
|
|
org.jext.Jext \
|
|
"$@"
|