Search in sources :

Example 16 with TypedProperties

use of org.jumpmind.properties.TypedProperties in project symmetric-ds by JumpMind.

the class AbstractVersion method version.

public String version() {
    if (version == null) {
        Attributes attributes = findManifestAttributes();
        if (attributes != null) {
            version = attributes.getValue("Build-Version");
        } else {
            File gradleProperties = new File("../symmetric-assemble/gradle.properties");
            if (gradleProperties.exists()) {
                TypedProperties props = new TypedProperties(gradleProperties);
                version = props.get("version");
            } else {
                version = "development";
            }
        }
    }
    return version;
}
Also used : Attributes(java.util.jar.Attributes) TypedProperties(org.jumpmind.properties.TypedProperties) File(java.io.File)

Aggregations

TypedProperties (org.jumpmind.properties.TypedProperties)16 File (java.io.File)4 IOException (java.io.IOException)3 ISecurityService (org.jumpmind.security.ISecurityService)2 IConfigurationService (org.jumpmind.symmetric.service.IConfigurationService)2 IRegistrationService (org.jumpmind.symmetric.service.IRegistrationService)2 ITriggerRouterService (org.jumpmind.symmetric.service.ITriggerRouterService)2 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 ArrayList (java.util.ArrayList)1 Properties (java.util.Properties)1 Attributes (java.util.jar.Attributes)1 MBeanServerConnection (javax.management.MBeanServerConnection)1 JMXConnector (javax.management.remote.JMXConnector)1 JMXServiceURL (javax.management.remote.JMXServiceURL)1 DataSource (javax.sql.DataSource)1 Connector (org.eclipse.jetty.server.Connector)1 HttpConfiguration (org.eclipse.jetty.server.HttpConfiguration)1 HttpConnectionFactory (org.eclipse.jetty.server.HttpConnectionFactory)1 SecureRequestCustomizer (org.eclipse.jetty.server.SecureRequestCustomizer)1