Commit 191beb5c authored by Stefan Huehner's avatar Stefan Huehner
Browse files

ISSUE-28703: Cleanup unused arguments

Commit matching 906954a341 change in backoffice repo.

Remove two obsolete arguments filter,excludeobjects completely.
As cmdline args are accessed by position shift all remaining args
accordingly.
parent a45b4ef3
......@@ -32,34 +32,32 @@ public class AlterDatabaseJava {
ada.setUrl(args[1]);
ada.setUser(args[2]);
ada.setPassword(args[3]);
// args[4] was 'excludeobjects' now unused
ada.setModel(new File(args[5]));
// args[6] was 'filter' now unused
ada.setInput(new File(args[7]));
ada.setObject(args[8]);
ada.setFailonerror(JavaTaskUtils.getBooleanProperty(args[9]));
ada.setBasedir(args[10]);
ada.setDirFilter(args[11]);
ada.setDatadir(args[12]);
ada.setDatafilter(args[13]);
ada.setForce(JavaTaskUtils.getBooleanProperty(args[14]));
ada.setStrict(JavaTaskUtils.getBooleanProperty(args[15]));
ada.setModel(new File(args[4]));
ada.setInput(new File(args[5]));
ada.setObject(args[6]);
ada.setFailonerror(JavaTaskUtils.getBooleanProperty(args[7]));
ada.setBasedir(args[8]);
ada.setDirFilter(args[9]);
ada.setDatadir(args[10]);
ada.setDatafilter(args[11]);
ada.setForce(JavaTaskUtils.getBooleanProperty(args[12]));
ada.setStrict(JavaTaskUtils.getBooleanProperty(args[13]));
if (args.length > 16) {
ada.setForcedRecreation(args[16]);
if (args.length > 14) {
ada.setForcedRecreation(args[14]);
}
if (args.length > 17) {
ada.setExecuteModuleScripts(JavaTaskUtils.getBooleanProperty(args[17]));
if (args.length > 15) {
ada.setExecuteModuleScripts(JavaTaskUtils.getBooleanProperty(args[15]));
}
if (args.length > 18) {
ada.setThreads(JavaTaskUtils.getIntegerProperty(args[18]));
if (args.length > 16) {
ada.setThreads(JavaTaskUtils.getIntegerProperty(args[16]));
}
if (args.length > 20) {
ada.setSystemUser(args[19]);
ada.setSystemPassword(args[20]);
if (args.length > 18) {
ada.setSystemUser(args[17]);
ada.setSystemPassword(args[18]);
}
ada.execute();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment