org.jvnet.hudson.maven.plugins.hpi
Class PropertyUtils
java.lang.Object
org.jvnet.hudson.maven.plugins.hpi.PropertyUtils
public final class PropertyUtils
- extends Object
- Version:
- $Id: PropertyUtils.java 10807 2008-07-14 18:56:05Z btosabre $
- Author:
- Kenney Westerhof
|
Method Summary |
static Properties |
loadPropertyFile(File propfile,
boolean fail,
boolean useSystemProps)
Reads a property file, resolving all internal variables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadPropertyFile
public static Properties loadPropertyFile(File propfile,
boolean fail,
boolean useSystemProps)
throws IOException
- Reads a property file, resolving all internal variables.
- Parameters:
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.
- Returns:
- the loaded and fully resolved Properties object
- Throws:
IOException
Copyright © 2011. All Rights Reserved.