This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit d90a32d764be293676e27fb06e0546a245ab5a5c Author: Josh Tynjala <joshtynj...@apache.org> AuthorDate: Thu Apr 7 14:06:16 2022 -0700 royale-maven-plugin: handle simplified exit codes in tools from commit dd44cbbc4c0bdf936b243f91a6ef42006a3aa5e7 There is no longer a non-zero exit code for warnings only --- .../src/main/java/org/apache/royale/maven/BaseMojo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java index a72a0fb66..26ff794a4 100644 --- a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java +++ b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java @@ -385,8 +385,7 @@ public abstract class BaseMojo } protected void handleExitCode(int exitCode) throws MojoExecutionException { - // Allow normal execution and execution with warnings. - if(!((exitCode == 0) || (!failOnCompilerWarnings && (exitCode == 2)))) { + if(exitCode != 0) { throw new MojoExecutionException("There were errors during the build. Got return code " + exitCode); } }