1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| public static void parseCfg(String as[], Properties properties, boolean interactive){
boolean again = true;
do{
int j = as[0].indexOf(61);
String fileName = as[0].substring(j + 1);
try {
String cfgStr = ConfigReader.getConfigString(fileName);
StringTokenizer cfgTknzr = new StringTokenizer(cfgStr);
while(cfgTknzr.hasMoreElements()){
cfgStr = cfgTknzr.nextToken();
AppLogger.debug2("MainFrame.parseCfg = " + cfgStr);
j = cfgStr.indexOf(61);
if(j>-1){
properties.put("parameter." + cfgStr.substring(0, j).toLowerCase(), cfgStr.substring(j + 1));
}
}
again = false;
} catch(Exception e){
}
}while(again == true);
} |
Partager