Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/ecj-gcj/files: ecj-gcj-3.5
Date: Sun, 31 Oct 2010 17:29:28
Message-Id: 20101031172924.47D1F20054@flycatcher.gentoo.org
1 caster 10/10/31 17:29:24
2
3 Added: ecj-gcj-3.5
4 Log:
5 Move from java-overlay.
6
7 (Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-java/ecj-gcj/files/ecj-gcj-3.5
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/ecj-gcj/files/ecj-gcj-3.5?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/ecj-gcj/files/ecj-gcj-3.5?rev=1.1&content-type=text/plain
14
15 Index: ecj-gcj-3.5
16 ===================================================================
17 #!/bin/bash
18 # gcj-jdk installs /usr/bin/gcj-jdk symlink, depending on it would be circular
19 # so we fallback to gcc-config discovery
20 GIJ_BIN="/usr/bin/gij"
21 if [[ ! -f ${GIJ_BIN} ]]; then
22 GIJ_BIN="$(gcc-config -B)/gij"
23 fi
24 if [[ ! -f ${GIJ_BIN} ]]; then
25 echo "gij not found! check that gcc is compiled with gcj flag"
26 exit 1
27 fi
28 # calling java-config would be an unnecessary slowdown here
29
30 # we need to append user CLASSPATH otherwise it will be overriden by the -classpath parameter
31 # this breaks e.g. bootstrap of ant-core
32 ecj_cp="/usr/share/ecj-gcj-3.5/lib/ecj.jar"
33 if [[ -n "${CLASSPATH}" ]]; then
34 ecj_cp="${ecj_cp}:${CLASSPATH}"
35 fi
36
37 ${GIJ_BIN} -classpath "${ecj_cp}" org.eclipse.jdt.internal.compiler.batch.Main "${@}"