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 7cc944c1115db5186c85b11f076ced1d1de2ebb7
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Apr 7 14:07:34 2022 -0700

    royale-maven-plugin: more specific error message for exit code from --watch 
compiler option
    
    Using --watch might be allowed in the future, but for now, we should 
explain that it doesn't work
---
 .../src/main/java/org/apache/royale/maven/BaseMojo.java                | 3 +++
 1 file changed, 3 insertions(+)

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 26ff794a4..8dc26568a 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,6 +385,9 @@ public abstract class BaseMojo
     }
 
     protected void handleExitCode(int exitCode) throws MojoExecutionException {
+        if(exitCode == 1000) {
+            throw new MojoExecutionException("The --watch compiler option is 
not supported by royale-maven-plugin");
+        }
         if(exitCode != 0) {
             throw new MojoExecutionException("There were errors during the 
build. Got return code " + exitCode);
         }

Reply via email to