Search in sources :

Example 1 with DefaultPropertiesPersister

use of com.atlassian.extras.common.org.springframework.util.DefaultPropertiesPersister in project env-tool-suite by stormning.

the class Version2LicenseDecoder method loadLicenseConfiguration.

private Properties loadLicenseConfiguration(Reader text) {
    try {
        Properties props = new Properties();
        (new DefaultPropertiesPersister()).load(props, text);
        return props;
    } catch (IOException var3) {
        throw new LicenseException("Could NOT load properties from reader", var3);
    }
}
Also used : LicenseException(com.atlassian.extras.common.LicenseException) DefaultPropertiesPersister(com.atlassian.extras.common.org.springframework.util.DefaultPropertiesPersister) IOException(java.io.IOException) Properties(java.util.Properties)

Aggregations

LicenseException (com.atlassian.extras.common.LicenseException)1 DefaultPropertiesPersister (com.atlassian.extras.common.org.springframework.util.DefaultPropertiesPersister)1 IOException (java.io.IOException)1 Properties (java.util.Properties)1