public static Configuration init() { AbstractAhtUtilTest.setfTarget(new File("target")); LoggerInit loggerInit = new LoggerInit("log4j.xml"); loggerInit.addAltPath("config.ahtutils-util.test"); loggerInit.init(); JaxbUtil.setNsPrefixMapper(new AhtUtilsNsPrefixMapper()); try { String cfn = ExlpCentralConfigPointer.getFile("utils", "util").getAbsolutePath(); ConfigLoader.add(cfn); logger.info("Using additional config in: " + cfn); } catch (ExlpConfigurationException e) { logger.debug( "No additional " + ExlpCentralConfigPointer.class.getSimpleName() + " because " + e.getMessage()); } Configuration config = ConfigLoader.init(); logger.debug("Config and Logger initialized"); return config; }
public static Configuration init(String configFile) { LoggerInit loggerInit = new LoggerInit("log4j.xml"); loggerInit.addAltPath("config.ofx-util.test"); loggerInit.init(); JaxbUtil.setNsPrefixMapper(new OfxNsPrefixMapper()); try { String cfn = ExlpCentralConfigPointer.getFile("ofx", "core").getAbsolutePath(); ConfigLoader.add(cfn); logger.info("Using additional config in: " + cfn); } catch (ExlpConfigurationException e) { logger.warn( "No additional " + ExlpCentralConfigPointer.class.getSimpleName() + ": " + e.getMessage()); } ConfigLoader.add(configFile); Configuration config = ConfigLoader.init(); logger.debug("Config and Logger initialized"); return config; }