<target name="update.node.serverindex.xml">     
    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_MULTICAST_DISCOVERY_ADDRESS"/>
        <param name="portValue" value="${NODE_MULTICAST_DISCOVERY_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;NODE_MULTICAST_DISCOVERY_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;NODE_MULTICAST_DISCOVERY_ADDRESS&quot;>\1\2\3port=&quot;${NODE_MULTICAST_DISCOVERY_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS"/>
        <param name="portValue" value="${NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS&quot;>\1\2\3port=&quot;${NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_DISCOVERY_ADDRESS"/>
        <param name="portValue" value="${NODE_DISCOVERY_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;NODE_DISCOVERY_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;NODE_DISCOVERY_ADDRESS&quot;>\1\2\3port=&quot;${NODE_DISCOVERY_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_DCS_UNICAST_ADDRESS"/>
        <param name="portValue" value="${NODE_DCS_UNICAST_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;DCS_UNICAST_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;DCS_UNICAST_ADDRESS&quot;>\1\2\3port=&quot;${NODE_DCS_UNICAST_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_BOOTSTRAP_ADDRESS"/>
        <param name="portValue" value="${NODE_BOOTSTRAP_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;BOOTSTRAP_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;BOOTSTRAP_ADDRESS&quot;>\1\2\3port=&quot;${NODE_BOOTSTRAP_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_SOAP_CONNECTOR_ADDRESS"/>
        <param name="portValue" value="${NODE_SOAP_CONNECTOR_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;SOAP_CONNECTOR_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;SOAP_CONNECTOR_ADDRESS&quot;>\1\2\3port=&quot;${NODE_SOAP_CONNECTOR_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_ORB_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_ORB_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;ORB_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;ORB_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_ORB_LISTENER_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_ORB_SSL_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_ORB_SSL_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;ORB_SSL_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;ORB_SSL_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_ORB_SSL_LISTENER_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_SAS_SSL_SERVERAUTH_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_SAS_SSL_SERVERAUTH_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;SAS_SSL_SERVERAUTH_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;SAS_SSL_SERVERAUTH_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_SAS_SSL_SERVERAUTH_LISTENER_ADDRESS}&quot;"/>
    </antcall>
    
    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS}&quot;"/>
    </antcall>
    
    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_IPC_CONNECTOR_ADDRESS"/>
        <param name="portValue" value="${NODE_IPC_CONNECTOR_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;IPC_CONNECTOR_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;IPC_CONNECTOR_ADDRESS&quot;>\1\2\3port=&quot;${NODE_IPC_CONNECTOR_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_XDAGENT_PORT"/>
        <param name="portValue" value="${NODE_XDAGENT_PORT}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;XDAGENT_PORT&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;XDAGENT_PORT&quot;>\1\2\3port=&quot;${NODE_XDAGENT_PORT}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_OVERLAY_UDP_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_OVERLAY_UDP_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;OVERLAY_UDP_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;OVERLAY_UDP_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_OVERLAY_UDP_LISTENER_ADDRESS}&quot;"/>
    </antcall>

    <antcall target="replaceRegExpFirstInstancesOfGivenTokenWithGivenValueForTheGivenFile">
        <param name="port" value="NODE_OVERLAY_TCP_LISTENER_ADDRESS"/>
        <param name="portValue" value="${NODE_OVERLAY_TCP_LISTENER_ADDRESS}"/>
        <param name="file" value="${file}"/>
        <param name="token" value="&quot;OVERLAY_TCP_LISTENER_ADDRESS&quot;>(.*)(&#10;?+)(.*)port=&quot;(.*)&quot;"/>
        <param name="tokenValue" value="&quot;OVERLAY_TCP_LISTENER_ADDRESS&quot;>\1\2\3port=&quot;${NODE_OVERLAY_TCP_LISTENER_ADDRESS}&quot;"/>
    </antcall>

</target>
