Changeset 35799


Ignore:
Timestamp:
Apr 6, 2008, 8:27:41 PM (11 years ago)
Author:
jmr@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/eclipse-ecj32/files/ecj.in

    r33624 r35799  
    1 #!/bin/bash
    2 # remove double bootclasspath entries:
    3 BOOTCLASSPATH=""
    4 BOOTCLASSPATH=$(find @PREFIX@/share/java -name "libgcj*.jar" -print | tr "\n" ":"):$(find @PREFIX@/share/java/ -name "glibj*.jar" -print | tr "\n" ":")
    5 OPTIONS=""
    6 while [ $# -gt 0 ]
    7 do
    8   if [ $1 = "-bootclasspath" ]
    9   then
    10     BOOTCLASSPATH=$2:$BOOTCLASSPATH
    11     shift
    12     shift
    13     continue
    14   fi
    15   OPTIONS="$OPTIONS $1"
    16   shift
    17 done
    18 GIJ_EXECUTABLE=$(ls @PREFIX@/bin/gij* | tail -n1)
    19 if [ -e /usr/bin/java ]
    20 then
    21   exec /usr/bin/java -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
    22 elif [ -e /usr/bin/cacao ]
    23 then
    24   exec /usr/bin/cacao -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
    25 elif [ -e  ]
    26 then
    27   exec $GIJ_EXECUTABLE -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
    28 else
    29   echo "no java vm found :("
    30   exit -1
    31 fi
     1#!/bin/sh
     2# add the compiler to the classpath and then use the default java
     3# implementation.  If the user wants to change the version of java
     4# they can define what 'java' resolves to.
     5CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH \
     6java org.eclipse.jdt.internal.compiler.batch.Main "$@"
Note: See TracChangeset for help on using the changeset viewer.