Details
Description
Enable loading of properties from a file specified at startup, rather than only from a file on the classpath.
In org.castor.core.util.Configuration, lines 161
protected void loadUserProperties(final String filename) { Properties properties = new Properties(); ..... String property = System.getProperty("org.castor.properties.custom"); if (property != null && property.length() > 0) { File file = new File(property); if (file.exists()) { loadFromFile(properties, file); } } _map.putAll(properties); }
Initial patch for review (and testing).