[35799] trunk/dports/java/eclipse-ecj32/files/ecj.in

jmr at macports.org jmr at macports.org
Sun Apr 6 13:27:42 PDT 2008


Revision: 35799
          http://trac.macosforge.org/projects/macports/changeset/35799
Author:   jmr at macports.org
Date:     2008-04-06 13:27:41 -0700 (Sun, 06 Apr 2008)

Log Message:
-----------
eclipse-ecj32: allow choice of java runtime. From maintainer in #14934.

Modified Paths:
--------------
    trunk/dports/java/eclipse-ecj32/files/ecj.in

Modified: trunk/dports/java/eclipse-ecj32/files/ecj.in
===================================================================
--- trunk/dports/java/eclipse-ecj32/files/ecj.in	2008-04-06 20:18:55 UTC (rev 35798)
+++ trunk/dports/java/eclipse-ecj32/files/ecj.in	2008-04-06 20:27:41 UTC (rev 35799)
@@ -1,31 +1,6 @@
-#!/bin/bash
-# remove double bootclasspath entries:
-BOOTCLASSPATH=""
-BOOTCLASSPATH=$(find @PREFIX@/share/java -name "libgcj*.jar" -print | tr "\n" ":"):$(find @PREFIX@/share/java/ -name "glibj*.jar" -print | tr "\n" ":")
-OPTIONS=""
-while [ $# -gt 0 ]
-do
-  if [ $1 = "-bootclasspath" ]
-  then
-    BOOTCLASSPATH=$2:$BOOTCLASSPATH
-    shift
-    shift
-    continue
-  fi
-  OPTIONS="$OPTIONS $1"
-  shift
-done
-GIJ_EXECUTABLE=$(ls @PREFIX@/bin/gij* | tail -n1)
-if [ -e /usr/bin/java ]
-then
-  exec /usr/bin/java -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-elif [ -e /usr/bin/cacao ]
-then
-  exec /usr/bin/cacao -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-elif [ -e  ]
-then
-  exec $GIJ_EXECUTABLE -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-else
-  echo "no java vm found :("
-  exit -1
-fi
+#!/bin/sh
+# add the compiler to the classpath and then use the default java 
+# implementation.  If the user wants to change the version of java
+# they can define what 'java' resolves to.
+CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH \
+java org.eclipse.jdt.internal.compiler.batch.Main "$@"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080406/e23d82db/attachment.html


More information about the macports-changes mailing list