mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Chris Ridd
19.57.2014 79f9a08fb746917e3a502a3effe89c0bef079f9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- 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'" />