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

com.fullcontact.rpc.jersey.Build Maven / Gradle / Ivy

The newest version!
package com.fullcontact.rpc.jersey;

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

/**
 * Hold build metadata
 *
 * @author Michael Rose (xorlev)
 */
public class Build {
    private static final Properties properties;

    static {
        properties = new Properties();
        try {
            properties.load(Build.class.getResourceAsStream("/build.properties"));
        } catch (IOException e) {
            // ignore
        }
    }

    private Build() {} // not instantiable

    public static String version() {
        return properties.getProperty("version", "unknown");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy