103104105106107108109110111112113
File configFile = new File(filename); if (configFile.exists()) { try { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); } catch (JoranException e) { // TODO can we do better than printing a stack trace on syserr? e.printStackTrace(); } } else {
126127128129130131132133134135136
if (configFile.exists()) { try { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); } catch (JoranException e) { // TODO can we do better than printing a stack trace on syserr? e.printStackTrace(); } } else {
142143144145146147148149150151152
try { File configFile = new File(filename); if (configFile.exists()) { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); } else { getStatusManager().add(new ErrorStatus("[" + filename + "] does not exist", this)); }
146147148149150151152153154155156
try { File configFile = new File(filename); if (configFile.exists()) { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); } else { getStatusManager().add( new ErrorStatus("[" + filename + "] does not exist", this)); }
88899091929394959697
basicContext = new AccessContext(); if (configFile.endsWith(".xml")) { JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(basicContext); configurator.doConfigure(configFile); StatusPrinter.print(basicContext); } } }
9293949596979899100101