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

Gaetan Boismal
27.02.2015 0fd845d18cfaf23fc9f54e92775c735955e4e859
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'" />