org.apache.maven.plugin.assembly.utils
Class PropertyUtils
java.lang.Object
org.apache.maven.plugin.assembly.utils.PropertyUtils
public final class PropertyUtils
- extends Object
- Version:
- $Id: PropertyUtils.java 826512 2009-10-18 20:03:32Z bentmann $
- Author:
- Kenney Westerhof
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInterpolatedPropertiesFromFile
public static Properties getInterpolatedPropertiesFromFile(File propfile,
boolean fail,
boolean useSystemProps)
throws IOException,
AssemblyFormattingException
- Reads a property file, resolving all internal variables.
- Parameters:
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.
- Returns:
- the loaded and fully resolved Properties object
- Throws:
IOException
AssemblyFormattingException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.