(HENGSIN-10) Problems with RUN_ImportAdempiere.sh

- Store DB_Type and DB_PATH as lowercase in AdempiereEnv.properties as what adempiere used to be doing.
This commit is contained in:
Heng Sin Low 2010-12-16 16:52:04 +08:00
parent 5d487f1ad2
commit b561dde609
2 changed files with 6 additions and 4 deletions

View File

@ -310,8 +310,9 @@ public class ConfigOracle implements IDatabaseConfig
pass, true, error)); pass, true, error));
log.info("OK: Database Server = " + databaseServer); log.info("OK: Database Server = " + databaseServer);
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName()); data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType()); //store as lower case for better script level backward compatibility
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType()); data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType().toLowerCase());
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType().toLowerCase());
// Database Port // Database Port
int databasePort = data.getDatabasePort(); int databasePort = data.getDatabasePort();

View File

@ -103,8 +103,9 @@ public class ConfigPostgreSQL implements IDatabaseConfig
pass, true, error)); pass, true, error));
log.info("OK: Database Server = " + databaseServer); log.info("OK: Database Server = " + databaseServer);
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName()); data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType()); //store as lower case for better script level backward compatibility
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType()); data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType().toLowerCase());
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType().toLowerCase());
// Database Port // Database Port
int databasePort = data.getDatabasePort(); int databasePort = data.getDatabasePort();