reporting string ": invalid flag: " as error, all other stuff as informational
[idea/javafx-plugin.git] / src / org / jetbrains / javafx / build / JavaFxCompilerHandler.java
index 8e4c2596f892590c0f2ee820ce5cd10205dfc79a..cecada57e4e2e2f348f4db84a34b06a5ad89adee 100644 (file)
@@ -202,7 +202,11 @@ public class JavaFxCompilerHandler {
         LOG.debug("Message: " + message);
       }
       else {
-        //myContext.addMessage(CompilerMessageCategory.INFORMATION, output, null, -1, -1);
+        if (output.indexOf(": invalid flag:") != -1) {
+            myContext.addMessage(CompilerMessageCategory.ERROR, output, null, -1, -1);
+        } else {
+            myContext.addMessage(CompilerMessageCategory.INFORMATION, output, null, -1, -1);
+        }
       }
     }
   }