示例#1
0
 private void addSectionsFromConf(
     Properties cfg, String prop, ArrayList<SectionInterface> sections) {
   sections.clear();
   for (int i = 1; ; i++) {
     String section = cfg.getProperty(prop + i);
     if (section == null) break;
     SectionInterface sec =
         GlobalContext.getGlobalContext().getSectionManager().getSection(section);
     if (!sec.getBaseDirectory()
         .getPath()
         .equals(GlobalContext.getGlobalContext().getRoot().getPath())) {
       sections.add(sec);
     }
   }
 }