com.perforce.p4java.ant.tasks
Class PerforceProperties

java.lang.Object
  extended by com.perforce.p4java.ant.tasks.PerforceProperties

public class PerforceProperties
extends java.lang.Object

Helper class for loading a properties file.


Method Summary
static java.util.Properties load(java.lang.String propertiesFileName)
          Load a properties file.
static java.util.Properties loadAsFile(java.lang.String propertiesFileName)
          Load a properties file from the path.
static java.util.Properties loadAsResource(java.lang.String propertiesFileName)
          Load a properties file as resource stream from the classpath.
static java.util.Properties loadAsResourceBundle(java.lang.String propertiesFileName)
          Load a properties file as resource bundle from the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadAsFile

public static java.util.Properties loadAsFile(java.lang.String propertiesFileName)
Load a properties file from the path.

Parameters:
propertiesFileName - the properties file name
Returns:
Properties

loadAsResourceBundle

public static java.util.Properties loadAsResourceBundle(java.lang.String propertiesFileName)
Load a properties file as resource bundle from the classpath.

Parameters:
propertiesFileName - the properties file name
Returns:
Properties

loadAsResource

public static java.util.Properties loadAsResource(java.lang.String propertiesFileName)
Load a properties file as resource stream from the classpath.

Parameters:
propertiesFileName - the properties file name
Returns:
Properties

load

public static java.util.Properties load(java.lang.String propertiesFileName)
Load a properties file.

Parameters:
propertiesFileName - the properties file name
Returns:
Properties


Copyright (c) 2010 Perforce Software. All rights reserved.