public final class PropertyUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
loadPropertyFile(java.io.File propfile,
boolean fail,
boolean useSystemProps)
Reads a property file, resolving all internal variables.
|
public static java.util.Properties loadPropertyFile(java.io.File propfile, boolean fail, boolean useSystemProps) throws java.io.IOException
propfile
- The property file to loadfail
- whether to throw an exception when the file cannot be loaded or to return nulluseSystemProps
- whether to incorporate System.getProperties settings into the returned Properties object.java.io.IOException
Copyright © 2013. All Rights Reserved.