665d68243a
- Install JAR in ${JAVASHAREDIR}/${PORTNAME} (${JAVAJARDIR} is for JAR libraries used by other ports) - Register an explicit dependency on java/javavmwrapper - Set JAVA_VERSION in the launcher script so that a correct JVM is chosen - Use 'exec' to launch JVM (as encouraged in the Porter's Handbook) - Use SUB_FILES to build the launcher script (some substitutions are provided by default, such as %%JAVA_VERSION%%) - Add $FreeBSD$ tags - Bump PORTREVISION because of packing list changes PR: 102193 Submitted by: Herve Quiroz <hq@freebsd.org>
4 lines
109 B
Bash
4 lines
109 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%JARFILE%%" "$@"
|