/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2156 by torben, Thu May 8 09:12:00 2014 UTC revision 2157 by torben, Sat May 10 08:24:55 2014 UTC
# Line 17  public class Lookup { Line 17  public class Lookup {
17          static int max_workers;          static int max_workers;
18          static boolean verbose;          static boolean verbose;
19                    
20          static Properties conf;          static SafeProperties conf;
21          static Logger logger = Logger.getLogger( Lookup.class.toString() );          static Logger logger = Logger.getLogger( Lookup.class.toString() );
22                    
23          int postnr;          int postnr;
# Line 161  public class Lookup { Line 161  public class Lookup {
161                          System.exit(1);                          System.exit(1);
162                  }                  }
163                                                                    
164                  conf = new Properties();                  conf = new SafeProperties();
165                  conf.load( new FileReader(confFile) );                  conf.load( new FileReader(confFile) );
166                                    
167                  max_workers = Integer.parseInt( conf.getProperty("MAX_WORKERS") );                  max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") );
168                  logger.info("Starting with MAX_WORKERS:" + max_workers);                  logger.info("Starting with MAX_WORKERS:" + max_workers);
169                                    
170                  verbose = Boolean.parseBoolean( conf.getProperty("VERBOSE") );                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );
171                  logger.info("Starting with VERBOSE:" + verbose);                  logger.info("Starting with VERBOSE:" + verbose);
172                                    
173                  Database db = new Database(conf);                  Database db = new Database(conf);

Legend:
Removed from v.2156  
changed lines
  Added in v.2157

  ViewVC Help
Powered by ViewVC 1.1.20