use of org.springframework.boot.configurationprocessor.metadata.InvalidConfigurationMetadataException in project spring-boot by spring-projects.
the class ConfigurationMetadataAnnotationProcessor method mergeAdditionalMetadata.
private ConfigurationMetadata mergeAdditionalMetadata(ConfigurationMetadata metadata) {
try {
ConfigurationMetadata merged = new ConfigurationMetadata(metadata);
merged.merge(this.metadataStore.readAdditionalMetadata());
return merged;
} catch (FileNotFoundException ex) {
// No additional metadata
} catch (InvalidConfigurationMetadataException ex) {
log(ex.getKind(), ex.getMessage());
} catch (Exception ex) {
logWarning("Unable to merge additional metadata");
logWarning(getStackTrace(ex));
}
return metadata;
}
Aggregations