configureDCRulesND.ant

 

<project name="configureDCRulesND" default="configure" basedir=".">
        <taskdef name="wsadmin" classname="com.ibm.websphere.ant.tasks.WsAdmin"/>
        <target name="configure">
                <path id="wodmHome.id">
                        <pathelement location="${wodmHome}"/>
                </path>
                <pathconvert targetos="unix" property="wodmHome.unix" refid="wodmHome.id" />

                <path id="propertiesFile.id">
                        <pathelement location="${propertiesFile}"/>
                </path>
                <pathconvert targetos="unix" property="propertiesFile.unix" refid="propertiesFile.id" />

                <path id="basedir.id">
                        <pathelement location="${basedir}" />
                </path>
                <pathconvert targetos="unix" property="basedir.unix" refid="basedir.id" />

                <wsadmin lang="jython" script="${basedir}/configureDCRulesNetworkDeployer.py" user="${websphere.user}" password="${websphere.password}">
                        <!-- cellName, clusterNodeName, mgrNodeName, clusterName, dsHome -->
                        <arg value="${wodmHome.unix}"/>
            <arg value="${basedir.unix}"/>
            <arg value="${propertiesFile.unix}"/>
            <arg value="${websphere.clusterNodeName}"/>
                </wsadmin>
        </target>
</project>