private static String getKey(XmlFileModel key) { return key.getFilePath(); }
@Override public boolean isValid(GraphRewrite event,EvaluationContext context, XmlFileModel model) { if (xmlCache.contains(model.getFilePath())) { return false; } else { xmlCache.add(model.getFilePath()); } return true; }
"Failed to parse xml entity: " + model.getFilePath() + ", due to: " + e.getMessage(), e); classificationService.attachClassification(model, XmlFileModel.UNPARSEABLE_XML_CLASSIFICATION, "Failed to parse xml entity: " + model.getFilePath() + ", due to: " + e.getMessage(), e); classificationService.attachClassification(model, XmlFileModel.UNPARSEABLE_XML_CLASSIFICATION, XmlFileModel.UNPARSEABLE_XML_DESCRIPTION);
final String msg = "Failed to parse, XML file is empty: " + model.getFilePath(); LOG.log(Level.WARNING, msg); model.setParseError(msg); if (cacheResult.isParseFailure()) final String msg = "Not loading XML file '" + model.getFilePath() + "' due to previous parse failure: " + model.getParseError(); LOG.log(Level.FINE, msg); final String message = "Failed to parse XML file: " + model.getFilePath() + ", due to: " + e.getMessage(); LOG.log(Level.WARNING, message); classificationService.attachClassification(event, context, model, UNPARSEABLE_XML_CLASSIFICATION, UNPARSEABLE_XML_DESCRIPTION);
LOG.log(Level.WARNING, "Found [beans] XML without namespace at: " + payload.getFilePath() + "."); return;
final String message = "Failed to parse XML entity: " + file.getFilePath() + ": the file is empty."; LOG.log(Level.FINE, message); file.setParseError(message); final String message = "Failed to parse XML entity: " + file.getFilePath() + ", due to: " + e.getMessage(); LOG.log(Level.INFO, message); LOG.log(Level.FINE, message, e);
LOG.warning("Could not parse POM XML for '" + xmlFileModel.getFilePath() + "':"+System.lineSeparator()+"\t" + ex.getMessage() + System.lineSeparator()+" \tSkipping Maven project discovery."); return null; LOG.info("Creating maven project for pom at: " + xmlFileModel.getFilePath() + " with gav: " + groupId + "," + artifactId + "," + version); mavenProjectModel = mavenProjectService.createMavenStub(groupId, artifactId, version);
LOG.warning("Could not parse POM XML for '" + xmlFileModel.getFilePath() + "':"+System.lineSeparator()+"\t" + ex.getMessage() + System.lineSeparator()+" \tSkipping Maven project discovery."); return null; LOG.info("Creating maven project for pom at: " + xmlFileModel.getFilePath() + " with gav: " + groupId + "," + artifactId + "," + version); mavenProjectModel = mavenProjectService.createMavenStub(groupId, artifactId, version);
LOG.info("Process name is null for process: "+payload.getFilePath()); String processImage = payload.getFilePath(); processImage = StringUtils.removeEnd(processImage, payload.getFileName()); processImage += "processimage.jpg";
LOG.info("Process name is null for process: "+payload.getFilePath()); String processImage = payload.getFilePath(); processImage = StringUtils.removeEnd(processImage, payload.getFileName()); processImage += "processimage.jpg";
LOG.log(Level.WARNING, "Found [beans] XML without namespace at: " + payload.getFilePath() + "."); return;
LOG.log(Level.WARNING, "Found [beans] XML without namespace at: " + payload.getFilePath() + "."); return;