org.apache.maven.plugin.resources

Class PropertyUtils

public final class PropertyUtils extends Object

Version: $Id: PropertyUtils.java 191749 2005-06-22 01:21:07Z brett $

Author: Kenney Westerhof

Method Summary
static PropertiesloadPropertyFile(File propfile, boolean fail, boolean useSystemProps)
Reads a property file, resolving all internal variables.

Method Detail

loadPropertyFile

public static Properties loadPropertyFile(File propfile, boolean fail, boolean useSystemProps)
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

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