public final class PropertyUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Pair<Properties,File> |
read(Class<?> clazz,
String propertiesFileName,
String confDirProp)
Reads the property file with the given name from the directory assigned to the given property, or
from the classpath if not found.
|
public static Pair<Properties,File> read(Class<?> clazz, String propertiesFileName, String confDirProp)
clazz
- calling class, to access classpathpropertiesFileName
- property file nameconfDirProp
- property name for the configuration directoryCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.