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 184 if (url != null) {
185 185 result = new DataConfiguration(new PropertiesConfiguration(url));
186 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 190 break;
... ... @@ -196,8 +195,7 @@ public class ConfigurationLoader implements Serializable {
196 195 if (url != null) {
197 196 result = new DataConfiguration(new XMLConfiguration(url));
198 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 201 break;
... ...