Package net.dryanhild.resources.impl.loaders

Examples of net.dryanhild.resources.impl.loaders.ClassResourceLoader


    }

    private void announceServiceVersion() {
        Properties props = new Properties();

        ClassResourceLoader loader = new ClassResourceLoader();

        String version;

        try (InputStream in = loader.getResource("/META-INF/maven/net.dryanhild/resources/pom.properties")) {
            props.load(in);
            version = props.getProperty("version");
        } catch (Exception e) {
            version = "UNKNOWN";
        }
View Full Code Here

TOP

Related Classes of net.dryanhild.resources.impl.loaders.ClassResourceLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.