org.apache.maven.plugin.war

Class PropertyUtils

public final class PropertyUtils extends Object

Version: $Id: PropertyUtils.java 390314 2006-03-31 04:04:35Z brett $

Author: Kenney Westerhof

UNKNOWN: this is duplicated from the resources plugin - migrate to plexus-utils

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-2007 Apache Software Foundation. All Rights Reserved.