- Remove use of default arguments when calling functions
|
- Search for the following regexps to find some default args:
|
<function-arg-def[^>]*default="DIRECTORY
|
<function-arg-def[^>]*default="STAF_REMOTE_HOSTNAME
|
- Check calls to 'isAlive', 'StartDsWithScript', 'addEntry', 'modifyEntry'
|
- Check calls to 'isAlive', 'StartDsWithScript', 'addEntry', 'modifyEntry'
|
- Replace such calls:
|
(<call function="'StopDsWithScript'">\s*\{\s*)('location'\s*:\s*STAF_REMOTE_HOSTNAME|'dsHost'\s*:\s*DIRECTORY_INSTANCE_HOST|'dsAdminPort'\s*:\s*DIRECTORY_INSTANCE_ADMIN_PORT|'dsBindDN'\s*:\s*DIRECTORY_INSTANCE_DN|'dsBindPwd'\s*:\s*DIRECTORY_INSTANCE_PSWD)\s*(,\s*)?
|
with
|
\1
|
Replace this:
|
<call function="'StopDsWithScript'">\s*\{\s*\}\s*</call>
|
with:
|
<call function="'StopDsWithScript'" />
|
Replace this:
|
<!--\s*Stop\s*DS\s*-->\s*<call function="'StopDsWithScript'" />
|
with:
|
<call function="'StopDsWithScript'" />
|