org.apache.maven.plugin.assembly.utils
Class PropertyUtils

java.lang.Object
  extended by org.apache.maven.plugin.assembly.utils.PropertyUtils

public final class PropertyUtils
extends java.lang.Object

Version:
$Id: PropertyUtils.java 451306 2006-09-29 14:23:02Z kenney $
Author:
Kenney Westerhof

Method Summary
static java.util.Properties getInterpolatedPropertiesFromFile(java.io.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
 

Method Detail

getInterpolatedPropertiesFromFile

public static java.util.Properties getInterpolatedPropertiesFromFile(java.io.File propfile,
                                                                     boolean fail,
                                                                     boolean useSystemProps)
                                                              throws java.io.IOException
Reads a property file, resolving all internal variables.

Parameters:
propfile - The property file to load
fail - wheter to throw an exception when the file cannot be loaded or to return null
useSystemProps - wheter to incorporate System.getProperties settings into the returned Properties object.
Returns:
the loaded and fully resolved Properties object
Throws:
java.io.IOException


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.