Skip to content
Permalink
Browse files
[CXF-5759] Make the cxf-cjx-plugin fail on parsing errors
  • Loading branch information
dkulp committed May 21, 2014
1 parent 3a30a39 commit 62d190d7e0f6fa087fc69810f4d49910c685297f
Showing 1 changed file with 4 additions and 1 deletion.
@@ -154,7 +154,10 @@ public void error(SAXParseException exception) {
buildContext.addMessage(file, exception.getLineNumber(), exception.getColumnNumber(),
mapMessage(exception.getLocalizedMessage()),
BuildContext.SEVERITY_ERROR, exception);

if (firstError == null) {
firstError = exception;
firstError.fillInStackTrace();
}
}

private String mapMessage(String localizedMessage) {

0 comments on commit 62d190d

Please sign in to comment.