All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.activitystream.underware.Version Maven / Gradle / Ivy

Go to download

For a description please see https://github.com/activitystream/as-sdk-java

There is a newer version: 0.5.8
Show newest version
package com.activitystream.underware;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Version {
    public static String sdkVersion;

    static {
        try {
            Properties prop = new Properties();
            InputStream in = Version.class.getResourceAsStream("/info.properties");
            prop.load(in);
            in.close();
            String version = prop.getProperty("version");
            if (!version.contains("$")) Version.sdkVersion = "java-" + version;
            else Version.sdkVersion = null;
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy