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

io.peasoup.fgroup.SystemInfo Maven / Gradle / Ivy

Go to download

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");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy