001package org.w3.ldp.testsuite;
002
003import java.io.IOException;
004import java.io.InputStream;
005import java.util.Properties;
006
007public class BuildProperties {
008        private static final Properties properties = new Properties();
009
010        static {
011                InputStream inputStream = BuildProperties.class.getResourceAsStream("/build.properties");
012                try {
013                        properties.load(inputStream);
014                } catch (IOException e) {
015                        e.printStackTrace();
016                } finally {
017                        try {
018                                inputStream.close();
019                        } catch (IOException e) {
020                                e.printStackTrace();
021                        }
022                }
023        }
024
025        public static String getRevision() {
026                return properties.getProperty("commit");
027        }
028}