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 Object

Version:
$Id: PropertyUtils.java 826512 2009-10-18 20:03:32Z bentmann $
Author:
Kenney Westerhof

Method Summary
static Properties getInterpolatedPropertiesFromFile(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 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 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:
IOException
AssemblyFormattingException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.