ecj-bootstrap: try 5 times to compile the classes
authorHenning <h.heinold@tarent.de>
Sun, 27 Mar 2011 11:41:28 +0000 (13:41 +0200)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Sun, 27 Mar 2011 21:05:16 +0000 (23:05 +0200)
* that is an easy fix to workaround the aborts and
  segfaults of cacao and jamvm
* bump PR

recipes/ecj/ecj-bootstrap-native.bb
recipes/ecj/files/ecj.in

index bdb9797..a11ba74 100644 (file)
@@ -17,7 +17,7 @@ SRC_URI = "file://ecj.in"
 
 S = "${WORKDIR}"
 
-PR = "r3"
+PR = "r4"
 
 JAR = "ecj-bootstrap.jar"
 
index 2cff259..0fd4a65 100755 (executable)
@@ -1 +1,13 @@
-${RUNTIME} -Xmx1024m -cp ${ECJ_JAR} org.eclipse.jdt.internal.compiler.batch.Main ${1+"$@"}
+ARGS=${1+"$@"}
+COUNT=5
+END=0
+
+while test "${COUNT}" -gt "${END}"
+do
+ ${RUNTIME} -Xmx1024m -cp ${ECJ_JAR} org.eclipse.jdt.internal.compiler.batch.Main ${ARGS}
+ if test "${?}" -eq "${END}"
+ then
+    break
+ fi
+ COUNT=$(($COUNT-1))
+done