public class PropertiesUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
filteredSystemProperties(Properties existing,
boolean withMaven)
Copies any jboss.*, swarm.*, or wildfly.* (and optionally maven.*) sysprops from System,
along with anything that shadows a specified property.
|
static Properties |
loadProperties(File file) |
static Properties |
loadProperties(InputStream in) |
static Properties |
loadProperties(String fileString)
Loads properties from the file identified by the given
fileString,
which can be a regular file (path), a classpath resource or a URL. |
static String |
versionFromPomProperties() |
public static Properties loadProperties(InputStream in) throws IOException
IOExceptionpublic static Properties loadProperties(String fileString) throws IOException
fileString,
which can be a regular file (path), a classpath resource or a URL.fileString - identifies the fileIOException - on errors reading the file/URLpublic static Properties loadProperties(File file) throws IOException
IOExceptionpublic static String versionFromPomProperties()
public static Properties filteredSystemProperties(Properties existing, boolean withMaven)
Copyright © 2017 JBoss by Red Hat. All rights reserved.