mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixing issues uncovered while running -Dsetup option with non-existent plugin based database scripts
This commit is contained in:
parent
530c6049ba
commit
58ae783a49
@ -45,21 +45,18 @@ public final class MobileDeviceManagementSchemaInitializer extends DatabaseCreat
|
||||
return pluginType;
|
||||
}
|
||||
|
||||
public void setPluginType(String pluginType) {
|
||||
this.pluginType = pluginType;
|
||||
}
|
||||
|
||||
public MobileDeviceManagementSchemaInitializer(DataSource dataSource, String pType) {
|
||||
super(dataSource);
|
||||
this.pluginType = pType;
|
||||
}
|
||||
|
||||
protected String getDbScriptLocation(String databaseType) {
|
||||
String scriptName = databaseType + "_" + getPluginType() + ".sql";
|
||||
String scriptName = databaseType + ".sql";
|
||||
String scriptLocation = setupSQLScriptBaseLocation + this.getPluginType() + File.separator + scriptName;
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Loading database script from :" + scriptName);
|
||||
log.debug("Loading database script from :" + scriptLocation);
|
||||
}
|
||||
return setupSQLScriptBaseLocation.replaceFirst("DBTYPE", databaseType) + scriptName;
|
||||
return scriptLocation;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user