don't fail if just warnings

Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/eadadcae
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/eadadcae
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/eadadcae

Branch: refs/heads/master
Commit: eadadcae8874aeade4369c8d58b7c1807eb29c76
Parents: 8122f9f
Author: Alex Harui <[email protected]>
Authored: Sun May 14 21:56:20 2017 -0700
Committer: Alex Harui <[email protected]>
Committed: Sun May 14 21:56:20 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/flex/compiler/clients/MXMLJSC.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/eadadcae/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java 
b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
index 795466e..135b0d3 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -335,7 +335,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                                result = 
mxmlc.mainCompileOnly(removeJSArgs(args), err);
                            else
                                result = mxmlc.mainNoExit(removeJSArgs(args));
-                           if (result != 0)
+                           if (result != 0 && result != 2)
                            {
                                problems.addAll(mxmlc.problems.getProblems());
                                break targetloop;
@@ -345,7 +345,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                                MXMLJSCFlex flex = new MXMLJSCFlex();
                                lastCompiler = flex;
                            result = flex.mainNoExit(removeASArgs(args), 
problems.getProblems(), false);
-                           if (result != 0)
+                           if (result != 0 && result != 2)
                            {
                                break targetloop;
                            }
@@ -354,7 +354,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                                MXMLJSCFlexCordova flexCordova = new 
MXMLJSCFlexCordova();
                                lastCompiler = flexCordova;
                            result = flexCordova.mainNoExit(removeASArgs(args), 
problems.getProblems(), false);
-                           if (result != 0)
+                           if (result != 0 && result != 2)
                            {
                                break targetloop;
                            }
@@ -363,7 +363,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                                MXMLJSCNode node = new MXMLJSCNode();
                                lastCompiler = node;
                            result = node.mainNoExit(removeASArgs(args), 
problems.getProblems(), false);
-                           if (result != 0)
+                           if (result != 0 && result != 2)
                            {
                                break targetloop;
                            }
@@ -372,7 +372,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                                MXMLJSCNative jsc = new MXMLJSCNative();
                                lastCompiler = jsc;
                            result = jsc.mainNoExit(removeASArgs(args), 
problems.getProblems(), false);
-                           if (result != 0)
+                           if (result != 0 && result != 2)
                            {
                                break targetloop;
                            }

Reply via email to