public class PropertiesUtil
extends java.lang.Object
| Constructor and Description |
|---|
PropertiesUtil() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
load(java.lang.String propertiesFile)
Load properties from either a file in the templatePath if there
is one or the classPath.
|
protected java.util.Properties |
loadFromClassPath(java.lang.String propertiesName)
Load a properties file from the classpath
|
protected java.util.Properties |
loadFromTemplatePath(java.lang.String propertiesFile)
Load a properties file from the templatePath defined in the
generator.
|
public java.util.Properties load(java.lang.String propertiesFile)
propertiesFile - the properties file to load through
either the templatePath or the classpath.protected java.util.Properties loadFromTemplatePath(java.lang.String propertiesFile)
throws java.lang.Exception
propertiesFile - the properties file to load. It must be
a relative pathname.java.lang.Exceptionprotected java.util.Properties loadFromClassPath(java.lang.String propertiesName)
throws java.lang.Exception
propertiesName - the properties file to load.java.lang.Exception