Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2DA5E200BD9 for ; Fri, 9 Dec 2016 22:03:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2C112160B1D; Fri, 9 Dec 2016 21:03:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74834160AFD for ; Fri, 9 Dec 2016 22:03:48 +0100 (CET) Received: (qmail 85761 invoked by uid 500); 9 Dec 2016 21:03:47 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 85753 invoked by uid 99); 9 Dec 2016 21:03:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 21:03:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 91403E040F; Fri, 9 Dec 2016 21:03:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Message-Id: <516e9a04baa14ebc92d29e3bd8e3e60f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-falcon] [refs/heads/develop] - Made the maven build also succeed if the FlexTool returned 0 or 2 Date: Fri, 9 Dec 2016 21:03:47 +0000 (UTC) archived-at: Fri, 09 Dec 2016 21:03:49 -0000 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 Authored: Fri Dec 9 22:03:32 2016 +0100 Committer: Christofer Dutz 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."); } }