aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ecj
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2011-08-09 03:08:35 +0000
committerSteffen Sledz <sledz@dresearch-fe.de>2011-09-02 08:15:15 +0200
commitb26c94b10e1fdb3fd9ebafab5213491942af0217 (patch)
tree52040651ea6d56b93866a27d9255d1d8491d5fb6 /recipes/ecj
parent936f9a745c032f7ea6ea2b03c46337b713b198be (diff)
downloadopenembedded-b26c94b10e1fdb3fd9ebafab5213491942af0217.tar.gz
classpath in 2011.03-maintenance
On Fri, 2011-08-05 at 11:38 -0400, George C. Huntington, III wrote: > I posted a patch that makes the wrapper script return the error code > if it > fails after 5 retries. it is on patchwork. > http://patches.openembedded.org/patch/7249/ It seems like saving the javac script arguments into the ARGS variable is what broke the old behavior where -bootclasspath '' worked for building classpath. Putting that part of the script back to the way it used to be fixes it. Do you want to merge this in with your error code return patch? Otherwise, I can submit it as another patch, but it will depend on yours... Thanks, Jesse
Diffstat (limited to 'recipes/ecj')
-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}