public class PropertiesUtils extends Object
| Constructor and Description |
|---|
PropertiesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Properties |
loadOrEmptyFromClasspath(Class<T> clazz,
String name) |
static <T> Properties |
loadPomPropertiesOrEmptyFromClasspath(Class<T> clazz,
String groupId,
String artifactId)
Loads the pom.properties for an artifact from classpath.
|
public static <T> Properties loadOrEmptyFromClasspath(Class<T> clazz, String name)
public static <T> Properties loadPomPropertiesOrEmptyFromClasspath(Class<T> clazz, String groupId, String artifactId)
T - The type of the class modeled by the given Class objectclazz - The class of which classloader should be used to read the pom.propertiesgroupId - The groupId for which the pom.properties should be loadedartifactId - The artifactId for which the pom.properties should be loadedCopyright © 2020. All rights reserved.