org.alfresco.maven.plugin.amp.util
Class PropertyUtils

java.lang.Object
  extended by org.alfresco.maven.plugin.amp.util.PropertyUtils

public final class PropertyUtils
extends Object

Version:
$Id: PropertyUtils.java 565036 2007-08-12 10:26:14Z snicoll $
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
 

Method Detail

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 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 - if an error failed while loading the properties


Copyright © 2009 Alfresco. All Rights Reserved.