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; |
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(); |
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 !!!" ); |