flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Made the maven build also succeed if the FlexTool returned 0 or 2
Date Fri, 09 Dec 2016 21:03:47 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 68fb2f15f -> 069881673


Made the maven build also succeed if the FlexTool returned 0 or 2


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

Branch: refs/heads/develop
Commit: 069881673769fc9a9707397296d78f5ae50e28cd
Parents: 68fb2f1
Author: Christofer Dutz <christofer.dutz@codecentric.de>
Authored: Fri Dec 9 22:03:32 2016 +0100
Committer: Christofer Dutz <christofer.dutz@codecentric.de>
Committed: Fri Dec 9 22:03:32 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/06988167/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
----------------------------------------------------------------------
diff --git a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
index ad13637..e0039f9 100644
--- a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
+++ b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
@@ -273,7 +273,8 @@ public abstract class BaseMojo
     }
 
     protected void handleExitCode(int exitCode) throws MojoExecutionException {
-        if(exitCode != 0) {
+        // Allow normal execution and execution with warnings.
+        if((exitCode != 0) && (exitCode != 2)) {
             throw new MojoExecutionException("There were errors during the build.");
         }
     }


Mime
View raw message