[Esapi-dev] One more thing....
Jim Manico
jim.manico at owasp.org
Thu Jan 28 00:43:32 EST 2010
Fixed loadConfig to actually fall back to file IO correctly. Pushing out
1.4.4. rc4 now and calling it a night.
private void loadConfiguration() throws IOException {
logSpecial("Attempting to load " + RESOURCE_FILE + " via the
classpath.");
try {
properties = loadConfigurationFromClasspath(RESOURCE_FILE);
} catch (IllegalArgumentException iae) {
logSpecial("Attempting to load " + RESOURCE_FILE + " via
file io.");
try {
properties =
loadPropertiesFromStream(getResourceStream(RESOURCE_FILE), RESOURCE_FILE);
} catch (Exception e) {
logSpecial(RESOURCE_FILE + " could not be successfully
loaded by any means. fail.");
}
}
}
--
Jim Manico
OWASP Podcast Host/Producer
OWASP ESAPI Project Manager
http://www.manico.net
More information about the Esapi-dev
mailing list