Commit 05dc0b847af68261189fee65d7d7276bc5ca1f67

Authored by Thiago Mariano
1 parent b069c8ed
Exists in master

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
@@ -184,8 +184,7 @@ public class ConfigurationLoader implements Serializable { @@ -184,8 +184,7 @@ public class ConfigurationLoader implements Serializable {
184 if (url != null) { 184 if (url != null) {
185 result = new DataConfiguration(new PropertiesConfiguration(url)); 185 result = new DataConfiguration(new PropertiesConfiguration(url));
186 }else{ 186 }else{
187 - throw new ConfigurationException(  
188 - getBundle().getString("resource-not-found", resource + ".properties")); 187 + getLogger().warn(getBundle().getString("resource-not-found", resource + ".properties"));
189 } 188 }
190 189
191 break; 190 break;
@@ -196,8 +195,7 @@ public class ConfigurationLoader implements Serializable { @@ -196,8 +195,7 @@ public class ConfigurationLoader implements Serializable {
196 if (url != null) { 195 if (url != null) {
197 result = new DataConfiguration(new XMLConfiguration(url)); 196 result = new DataConfiguration(new XMLConfiguration(url));
198 }else{ 197 }else{
199 - throw new ConfigurationException(  
200 - getBundle().getString("resource-not-found", resource + ".xml")); 198 + getLogger().warn(getBundle().getString("resource-not-found", resource + ".xml"));
201 } 199 }
202 200
203 break; 201 break;