*
* @param args
* Command line
*/
public static void main(String[] args) {
I_DbPool pool = null;
Connection conn = null;
try {
System.setProperty("java.util.logging.config.file",
"testlog.properties");
// LogManager.getLogManager().readConfiguration();
// Preferences prefs = Preferences.userRoot();
// prefs.node(ReplicationConstants.CONTRIB_PERSISTENT_MAP).clear();
// prefs.clear();
// ---- Database settings -----
if (System.getProperty("jdbc.drivers", null) == null) {
System.setProperty(
"jdbc.drivers",
"org.hsqldb.jdbcDriver:oracle.jdbc.driver.OracleDriver:com.microsoft.jdbc.sqlserver.SQLServerDriver:org.postgresql.Driver");
}
if (System.getProperty("db.url", null) == null) {
System.setProperty("db.url", "jdbc:postgresql:test//localhost/test");
}
if (System.getProperty("db.user", null) == null) {
System.setProperty("db.user", "postgres");
}
if (System.getProperty("db.password", null) == null) {
System.setProperty("db.password", "");
}
I_Info info = new PropertiesInfo(System.getProperties());
boolean forceCreationAndInit = true;
I_DbSpecific specific = ReplicationConverter.getDbSpecific(info, forceCreationAndInit);
pool = (I_DbPool) info.getObject("db.pool");
conn = pool.reserve();
conn.setAutoCommit(true);
String schema = info.get("wipeout.schema", null);
String version = info.get("replication.version", "0.0");
if (schema == null) {
String initialUpdateFile = info.get("initialUpdate.file", null);