
com.activitystream.underware.Version Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
For a description please see https://github.com/activitystream/as-sdk-java
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