|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.resources.PropertyUtils
public final class PropertyUtils
Method Summary | |
---|---|
static java.util.Properties |
loadPropertyFile(java.io.File propfile,
boolean fail,
boolean useSystemProps)
Deprecated. Reads a property file, resolving all internal variables. |
static java.util.Properties |
loadPropertyFile(java.io.File propFile,
java.util.Properties baseProps)
Deprecated. Reads a property file, resolving all internal variables, using the supplied base properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Properties loadPropertyFile(java.io.File propFile, java.util.Properties baseProps) throws java.io.IOException
The properties are resolved iteratively, so if the value of property A refers to property B, then after resolution the value of property B will contain the value of property B.
propFile
- The property file to load.baseProps
- Properties containing the initial values to subsitute into the properties file.
java.io.IOException
- if profile does not exist, or cannot be read.public static java.util.Properties loadPropertyFile(java.io.File propfile, boolean fail, boolean useSystemProps) throws java.io.IOException
propfile
- The property file to loadfail
- wheter to throw an exception when the file cannot be loaded or to return nulluseSystemProps
- wheter to incorporate System.getProperties settings into the returned Properties object.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |