Package com.heroku.sdk.deploy.util
Class PropertiesUtils
- java.lang.Object
-
- com.heroku.sdk.deploy.util.PropertiesUtils
-
public class PropertiesUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> PropertiesloadOrEmptyFromClasspath(Class<T> clazz, String name)static <T> PropertiesloadPomPropertiesOrEmptyFromClasspath(Class<T> clazz, String groupId, String artifactId)Loads the pom.properties for an artifact from classpath.
-
-
-
Method Detail
-
loadOrEmptyFromClasspath
public static <T> Properties loadOrEmptyFromClasspath(Class<T> clazz, String name)
-
loadPomPropertiesOrEmptyFromClasspath
public static <T> Properties loadPomPropertiesOrEmptyFromClasspath(Class<T> clazz, String groupId, String artifactId)
Loads the pom.properties for an artifact from classpath.- Type Parameters:
T- The type of the class modeled by the given Class object- Parameters:
clazz- 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 loaded- Returns:
- The loaded properties
- See Also:
- http://maven.apache.org/shared/maven-archiver/#class_archive
-
-