| | |
| | | |
| | | |
| | | <!--== Update missing parameters --> |
| | | <iterate in="instances" var="instance"> |
| | | <call function="'updateMissingParameters'"> |
| | | {'instances' : instances} |
| | | {'instance' : instance} |
| | | </call> |
| | | |
| | | </iterate> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | <!-- ************************************************************ --> |
| | | <function name="updateMissingParameters" scope="local"> |
| | | <function-map-args> |
| | | <function-arg-def name="instances" type="required"> |
| | | <function-arg-def name="instance" type="required"> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | | <!--======== Update missing parameters ======--> |
| | | <iterate in="instances" var="instance"> |
| | | <sequence> |
| | | |
| | | <!--== Get instance informations ==--> |
| | | <process name="'%s: Get server infos' % instance.getName()"> |
| | | <location>instance.getHost()</location> |
| | |
| | | instance.setOs(os) |
| | | </script> |
| | | </sequence> |
| | | </iterate> |
| | | </sequence> |
| | | </function> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- ************************************************************ --> |
| | | <function name="getOpendsBuildID" scope="local"> |
| | | <function-map-args> |
| | | <function-arg-def name="instance" type="required"> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | | <!--==== get build id if instance has already been installed ====--> |
| | | <call function="'isFile'"> |
| | | { |
| | | 'location' : instance.getHost(), |
| | | 'fileName' : instance.getInstallDir() |
| | | } |
| | | </call> |
| | | <script> |
| | | installDirExist = STAXResult |
| | | </script> |
| | | <!--== if installDir exists, get buildID ==--> |
| | | <if expr="installDirExist == TRUE"> |
| | | <call function="'updateMissingParameters'"> |
| | | {'instance' : instance} |
| | | </call> |
| | | </if> |
| | | </sequence> |
| | | </function> |
| | | </stax> |