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

java.lang.Object
  extended byorg.apache.maven.plugin.assembly.utils.PropertyUtils

public final class PropertyUtils
extends java.lang.Object

Version:
$Id: PropertyUtils.java 610981 2008-01-10 23:10:00Z vsiveton $
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-2008 Apache Software Foundation. All Rights Reserved.