io.peasoup.fgroup.SystemInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fgroup Show documentation
Show all versions of fgroup Show documentation
Fgroup is a java utility to seek and capture for groups of files using GLOB-like patterns.
The newest version!
package io.peasoup.fgroup;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
class SystemInfo {
private SystemInfo() {
// private ctor
}
static String version() {
Properties releaseInfo = new Properties();
InputStream releaseFile = SystemInfo.class.getResourceAsStream("/release.properties");
if (releaseFile == null)
return "undefined";
try {
releaseInfo.load(releaseFile);
} catch (IOException e) {
e.printStackTrace();
}
return releaseInfo.getProperty("version");
}
}