summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2011-08-08 14:17:57 -0500
committerJesse Gilles <jgilles@multitech.com>2011-08-08 14:17:57 -0500
commit50ad722a6eedc67464ea9633cd88db029e38d40b (patch)
treeec3857d959e9bcfb3cbda1274c3ddb15944b3d4e
parentbee1566889aafd6ad35f5f4e641502bc750018cb (diff)
ecj-bootstrap-native: fix javac wrapper script so it can compile classpath
-rw-r--r--multitech/recipes/ecj/ecj-bootstrap-native.bbappend5
-rwxr-xr-xmultitech/recipes/ecj/files/ecj.in16
2 files changed, 21 insertions, 0 deletions
diff --git a/multitech/recipes/ecj/ecj-bootstrap-native.bbappend b/multitech/recipes/ecj/ecj-bootstrap-native.bbappend
new file mode 100644
index 0000000..2a318b6
--- /dev/null
+++ b/multitech/recipes/ecj/ecj-bootstrap-native.bbappend
@@ -0,0 +1,5 @@
+# custom ecj.in - fix up javac wrapper script so it can compile classpath again
+FILESEXTRA := "${THISDIR}"
+FILESPATHBASE =. "${FILESEXTRA}:"
+
+PR .= ".corecdp1"
diff --git a/multitech/recipes/ecj/files/ecj.in b/multitech/recipes/ecj/files/ecj.in
new file mode 100755
index 0000000..f8d97ac
--- /dev/null
+++ b/multitech/recipes/ecj/files/ecj.in
@@ -0,0 +1,16 @@
+COUNT=5
+END=0
+RETURNCODE=0
+
+while test "${COUNT}" -gt "${END}"
+do
+ ${RUNTIME} -Xmx1024m -cp ${ECJ_JAR} org.eclipse.jdt.internal.compiler.batch.Main ${1+"$@"}
+ RETURNCODE=${?}
+ if test "${?}" -eq "${END}"
+ then
+ break
+ fi
+ COUNT=$(($COUNT-1))
+done
+
+exit ${RETURNCODE}