commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uma...@comcast.net
Subject [Commons Configuratin]: Suppress exceptions about missing optional property files?
Date Sun, 06 Apr 2008 05:02:53 GMT


I am using the latest commons config on JDK1.6. Is there a way
to suppress exceptions pertaining to missing optional property files?

Thanks,

/Ur

Configuration:
        <properties fileName="/home/jdoe/my.properties" optional="true" />

Exception:
Caused by: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration
source /home/jdoe/my.properties
        at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:215)
        at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:195)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message