aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ecj/files/ecj.in
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ecj/files/ecj.in')
-rwxr-xr-xrecipes/ecj/files/ecj.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/ecj/files/ecj.in b/recipes/ecj/files/ecj.in
index 0fd4a65cdc..f8d97ac124 100755
--- a/recipes/ecj/files/ecj.in
+++ b/recipes/ecj/files/ecj.in
@@ -1,13 +1,16 @@
-ARGS=${1+"$@"}
COUNT=5
END=0
+RETURNCODE=0
while test "${COUNT}" -gt "${END}"
do
- ${RUNTIME} -Xmx1024m -cp ${ECJ_JAR} org.eclipse.jdt.internal.compiler.batch.Main ${ARGS}
+ ${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}