modify return code handling from the Command script (#1798)

This commit is contained in:
Ben Fry
2013-06-01 15:35:32 -04:00
parent 9578cea2de
commit cc50178491
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -149,8 +149,12 @@ public class Compiler {
writer.flush();
writer.close();
String errorString = errorBuffer.toString();
if (errorString.trim().length() != 0) {
success = false;
}
BufferedReader reader =
new BufferedReader(new StringReader(errorBuffer.toString()));
new BufferedReader(new StringReader(errorString));
//System.err.println(errorBuffer.toString());
String line = null;
+1
View File
@@ -104,6 +104,7 @@ cmd_name='processing-java'
if [ $current_name = $cmd_name ]
then
java processing.mode.java.Commander "$@"
exit $?
else
# Start Processing in the same directory as this script
if [ "$1" ]; then