Skip to content
Snippets Groups Projects
Commit 3b613133 authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

config.properties a scommand line argument

parent abb44c66
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class Synchronizer {
private OracleConnection oConnection;
private PsqlConnection pConnection;
private final Properties config = new Properties();
private final String configFile = "config.properties";
// private final String configFile = "config.properties";
private final Properties tableRows = new Properties();
private final String oracleTable = "oracleTable.properties";
private FileHandler fileHandler;
......@@ -24,7 +24,7 @@ public class Synchronizer {
public static void main(String[] argv) {
Synchronizer sync = new Synchronizer();
sync.loadProperties(sync.configFile);
sync.loadProperties(argv[0]);
sync.initLogger();
sync.oConnection = new OracleConnection(logger);
sync.pConnection = new PsqlConnection(logger);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment