From 05dc0b847af68261189fee65d7d7276bc5ca1f67 Mon Sep 17 00:00:00 2001 From: Thiago Mariano Date: Tue, 19 Mar 2013 12:52:04 -0300 Subject: [PATCH] Mudança para ao invés de lançar exceção quando o arquivo não existir, logar com WARN. --- impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ConfigurationLoader.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ConfigurationLoader.java b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ConfigurationLoader.java index 36ae07a..c187b02 100644 --- a/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ConfigurationLoader.java +++ b/impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ConfigurationLoader.java @@ -184,8 +184,7 @@ public class ConfigurationLoader implements Serializable { if (url != null) { result = new DataConfiguration(new PropertiesConfiguration(url)); }else{ - throw new ConfigurationException( - getBundle().getString("resource-not-found", resource + ".properties")); + getLogger().warn(getBundle().getString("resource-not-found", resource + ".properties")); } break; @@ -196,8 +195,7 @@ public class ConfigurationLoader implements Serializable { if (url != null) { result = new DataConfiguration(new XMLConfiguration(url)); }else{ - throw new ConfigurationException( - getBundle().getString("resource-not-found", resource + ".xml")); + getLogger().warn(getBundle().getString("resource-not-found", resource + ".xml")); } break; -- libgit2 0.21.2