File tree Expand file tree Collapse file tree
knowagemeta/src/main/java/it/eng/knowage/meta/generator/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ public boolean compile() {
141141 if (!diagnostics .getDiagnostics ().isEmpty ()) {
142142 logger .error ("Found compilation errors during metamodel generation" );
143143 for (Diagnostic <? extends JavaFileObject > diagnostic : diagnostics .getDiagnostics ()) {
144+ if (diagnostic .getSource () != null ) {
144145 logger .error ("Found error on " + diagnostic .getSource ().toUri () + "- line " + diagnostic .getLineNumber ()
145146 + "- Error: " + diagnostic .getMessage (null ));
146147 log .append (MessageFormat .format (
@@ -152,6 +153,11 @@ public boolean compile() {
152153 } catch (IOException e ) {
153154 log .append ("Error while reading java sources.\n " );
154155 }
156+ }
157+ else
158+ {
159+ it .eng .knowage .meta .generator .utils .Compiler .logger .warn (diagnostic .getMessage (null ));
160+ }
155161 }
156162 }
157163 log .flush ();
You can’t perform that action at this time.
0 commit comments