summaryrefslogtreecommitdiff
path: root/java/eclipse/files/eclipse.in
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2019-04-14 09:14:32 +0000
committerKurt Jaeger <pi@FreeBSD.org>2019-04-14 09:14:32 +0000
commit765525b60a7094d21911f9cf3bca389d03aca79f (patch)
treefed51259f984e2e19a3483723393a0b30bdace58 /java/eclipse/files/eclipse.in
parentnet/radvd: Update to 2.18 (diff)
java/eclipse: update 4.6 -> 4.11, submitter becomes maintainer
- port is rewritten from scratch - Warning: UI widgets are oddly sized, currently under investigation PR: 236792 Submitted by: Jonathan Chen <jonc@chen.org.nz> Reviewed by: mizhka@gmail.com, Curtis Hamilton Approved by: ljboiler@gmail.com (maintainer timeout) Relnotes: https://www.eclipse.org/eclipseide/2019-03/noteworthy/
Notes
Notes: svn path=/head/; revision=498880
Diffstat (limited to 'java/eclipse/files/eclipse.in')
-rw-r--r--java/eclipse/files/eclipse.in39
1 files changed, 1 insertions, 38 deletions
diff --git a/java/eclipse/files/eclipse.in b/java/eclipse/files/eclipse.in
index 10505f2270e7..476350acca8a 100644
--- a/java/eclipse/files/eclipse.in
+++ b/java/eclipse/files/eclipse.in
@@ -6,41 +6,4 @@
#
# $FreeBSD$
#
-DEFAULT_JAVA_HOME=%%JAVA_HOME%%
-ECLIPSE_HOME=%%ECLIPSE_HOME%%
-DEFAULT_JAVA_CMD=java
-export GRE_HOME=%%LOCALBASE%%/lib/%%BROWSER%%
-
-#-----------------------------------------------------------------------------
-# Determine configuration settings
-#-----------------------------------------------------------------------------
-
-# Determine the JDK home directory
-if [ -z "${JAVA_HOME}" ]; then
- JAVA_HOME=${DEFAULT_JAVA_HOME}
-fi
-
-# Determine 'java' executable
-if [ -z "${JAVACMD}" ]; then
- if [ -n "${JAVA_HOME}" ]; then
- JAVACMD="${JAVA_HOME}/bin/java"
- else
- JAVACMD=${DEFAULT_JAVACMD}
- fi
-fi
-
-# Check if 'java' executable can be found
-if [ ! -x "$JAVACMD" ]; then
- echo "Error: JAVA_HOME is not defined correctly: ${JAVA_HOME}"
- echo " Unable to find ${JAVACMD}"
- exit 1
-fi
-
-# Check if 'eclipse' executable can be found
-if [ ! -x "${ECLIPSE_HOME}/eclipse" ]; then
- echo "Error: ECLIPSE_HOME is not defined correctly: ${ECLIPSE_HOME}"
- echo " Unable to find eclipse launcher binary"
- exit 1
-fi
-
-JAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" PATH=${JAVA_HOME}/bin:${PATH} %%SWTGTK3OPT%% exec "${ECLIPSE_HOME}/eclipse" "$@"
+exec %%DATADIR%%/eclipse "$@"