Examples of GreedConfig


Examples of greed.conf.schema.GreedConfig

    @Test
    public void testSerialize() throws ConfigException {
        ConfigParser configParser = new ConfigParser();
        Config config = ConfigFactory.load("default").resolve();
        System.out.println(config.toString());
        GreedConfig greedConfig = configParser.parseAndCheck("greed", config.getConfig("greed"), GreedConfig.class);
        System.out.println(StringUtil.join(greedConfig.getLanguage().get("java").getTemplateDef().get("source").getTransformers(), ", "));
        System.out.println(Arrays.toString(greedConfig.getLanguage().get("java").getTemplateDef().get("source").getDependencies()));
        System.out.println(greedConfig.getLanguage().get("java").getTemplateDef().get("testcase").getOverwrite());
        System.out.println("done");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.