Skip to contentSkip to conversation

make the javac wrapper script pass back the return code

PATCH In review George C. Huntington III 2 participants 2 messages Jul 8, 2011 – Jul 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make the javac wrapper script pass back the return code

this will keep things from failing silently, while preserving the "try 5 times feature"

---
 recipes/ecj/ecj-bootstrap-native.bb |    2 +-
 recipes/ecj/files/ecj.in            |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
recipes/ecj/ecj-bootstrap-native.bb +1 -1
index a11ba74..72571bf 100644
@@ -17,7 +17,7 @@ SRC_URI = "file://ecj.in"
 
 S = "${WORKDIR}"
 
-PR = "r4"
+PR = "r5"
 
 JAR = "ecj-bootstrap.jar"
 
recipes/ecj/files/ecj.in +4 -0
index 0fd4a65..66f4851 100755
@@ -1,13 +1,17 @@
 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}
+ RETURNCODE=${?}
  if test "${?}" -eq "${END}"
  then
     break
  fi
  COUNT=$(($COUNT-1))
 done
+
+exit ${RETURNCODE}
Signature · 1 line
1.7.4.1
#1 lore raw

Please cherry-pick this into maintenance branch

Quoted 55 lines · George C. Huntington III

this will keep things from failing silently, while preserving the "try 5 times feature"

---
 recipes/ecj/ecj-bootstrap-native.bb |    2 +-
 recipes/ecj/files/ecj.in            |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
recipes/ecj/ renamed from recipes/ecj/ecj-bootstrap-native.bb +0 -0

ecj-bootstrap-native.bb
index a11ba74..72571bf 100644

recipes/ecj/ecj-bootstrap-native.bb +1 -1
@@ -17,7 +17,7 @@ SRC_URI = "file://ecj.in"
 
 S = "${WORKDIR}"
 
-PR = "r4"
+PR = "r5"
 
 JAR = "ecj-bootstrap.jar"
 
recipes/ecj/files/ecj.in +4 -1
index 0fd4a65..66f4851 100755
@@ -1,13 +1,17 @@
 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}
+ RETURNCODE=${?}
 if test "${?}" -eq "${END}"
 then
    break
 fi
 COUNT=$(($COUNT-1))
 done
+
+exit ${RETURNCODE}
--

1.7.4.1

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel