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

Diff of /dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/LookupMain.java

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

revision 2735 by torben, Tue Sep 29 07:48:48 2015 UTC revision 2736 by torben, Fri Oct 2 09:34:36 2015 UTC
# Line 24  public class LookupMain { Line 24  public class LookupMain {
24    
25          static final String CONFIG_FILENAME = "fulddaekning.properties";          static final String CONFIG_FILENAME = "fulddaekning.properties";
26    
27          static boolean rename_tables;          static boolean test_mode;
28          static SafeProperties conf;          static SafeProperties conf;
29    
30          static int max_workers;          static int max_workers;
# Line 70  public class LookupMain { Line 70  public class LookupMain {
70                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );
71                  logger.info("Starting with VERBOSE:" + verbose);                  logger.info("Starting with VERBOSE:" + verbose);
72    
73                  rename_tables = Boolean.parseBoolean( conf.getSafeProperty("RENAMETABLES") );                  test_mode = Boolean.parseBoolean( conf.getSafeProperty("TEST") );
74                  logger.info("Starting with RENAMETABLES:" + rename_tables);                  logger.info("Starting with TEST:" + test_mode);
75    
76                  distributor = conf.getSafeProperty("DISTRIBUTOR");                  distributor = conf.getSafeProperty("DISTRIBUTOR");
77                  distributor = distributor.toUpperCase();                  distributor = distributor.toUpperCase();
# Line 165  public class LookupMain { Line 165  public class LookupMain {
165    
166                          db.saveBatch();                          db.saveBatch();
167    
168                          if (rename_tables) {                          if (test_mode) {
169                                  db.renameResultTables();                                  db.renameResultTables();
170                          } else {                          } else {
171                                  logger.info( "Rename tables is disabled !!!" );                                  logger.info( "Rename tables is disabled !!!" );

Legend:
Removed from v.2735  
changed lines
  Added in v.2736

  ViewVC Help
Powered by ViewVC 1.1.20