<?xml version="1.0" encoding="UTF-8"?>

<!--

    Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2004 - All Rights reserved.

    WPS configuration actions
-->

    <taskdef name="editfile" classname="com.ibm.wps.config.edit.EditFileTask" classpath="${WpsInstallLocation}/bin/wp.config.jar"/>
    <taskdef name="xmlaccess" classname="com.ibm.wps.xmlaccess.XmlAccessTask" classpath="${WpsInstallLocation}/bin/wp.xml.client.jar"/>


    <!-- ###################################################### -->
    <!-- WPS CONFIGURATION FOR DEVELOPER INSTALL USING PUMA      -->
    <!-- ###################################################### -->

    <target name="action-config-portal-transfer" depends="
                                                 action-update-datastoreservice,
                                                 action-is-security-enabled,
                                                 action-config-portal-transfer-secure,
                                                 action-config-portal-transfer-unsecure" />

    <target name="action-config-portal-transfer-secure" if="WasSecurityEnabled" >
        <antcall target="action-update-wmm-ldap"/>
    </target>

    <target name="action-config-portal-transfer-unsecure" unless="WasSecurityEnabled" >
        <antcall target="action-update-wmm"/>
    </target>

    <target name="action-config-portal-dev" depends="action-update-localizerservice-properties, action-modify-cookie-path-ear-wps, action-update-configservice, action-update-deploymentservice, action-update-datastoreservice, action-update-vaultservice, action-update-wmm,action-update-portletcontainersevice" >
        <logmsg level="INFO" task="action-config-portal-dev" message="Config.portal.dev.success" />
    </target>

    <target name="action-config-portal-secure" depends="action-modify-cookie-path-ear-wps, action-update-configservice, action-update-deploymentservice, action-update-datastoreservice, action-update-vaultservice-ldap" >
		<logmsg level="INFO" task="action-config-portal-secure" message="Config.general" param1="action-modify-cookie-path-ear-wps, action-update-configservice, action-update-deploymentservice, action-update-datastoreservice, action-update-vaultservice-ldap" />
    </target>


   <target name="action-update-wps-ear" unless="isSecondNode">
       <logmsg level="INFO" task="action-update-wps-ear" message="Config.update.portal" />
       <property name="extract.dir" value="${work.dir}/extract"/>

       <delete dir="${extract.dir}"/>
       <!-- Extract the EAR -->
       <mkdir dir="${extract.dir}"/>
       <echo message="extracting 'wps.ear' from AppServer"/>
       <wpwsadmin action="EXTRACT" appName="wps" earFile="${extract.dir}/wps.ear"/>

       <!-- Update web.xml and application.xml -->
       <antcall target="action-update-deployment-descriptors">
         <param name="extract.dir" value="${extract.dir}"/>
       </antcall>
       <!-- Redeploy the EAR -->
       <echo message="redeploying 'wps.ear' in AppServer"/>
       <wpwsadmin action="REDEPLOY" appName="wps" earFile="${extract.dir}/wps.ear"/>
       <!-- Always run this task after redeploying the WPS EAR -->
       <antcall target="action-modify-attributes-ear-wps"/>
   </target>

    <target name="action-update-deployment-descriptors">
      <logmsg level="INFO" task="action-update-deployment-descriptors" message="Config.update.portal" />
      <mkdir dir="${extract.dir}/old"/>
      <mkdir dir="${extract.dir}/new"/>
      <!-- Extract web.xml and application.xml -->
      <echo message="extracting 'wps.war' from '${extract.dir}/wps.ear' to directory '${extract.dir}/old'" />
      <antcall target="action-extract-file-from-jar">
        <param name="ExtractFileFromJarSrc" value="${extract.dir}/wps.ear" />
        <param name="ExtractFileFromJarDestDir" value="${extract.dir}/old" />
        <param name="ExtractFileFromJarName" value="wps.war" />
      </antcall>

      <echo message="extracting 'WEB-INF/web.xml' from '${extract.dir}/old/wps.war' to directory '${extract.dir}/old'" />
      <antcall target="action-extract-file-from-jar">
        <param name="ExtractFileFromJarSrc" value="${extract.dir}/old/wps.war" />
        <param name="ExtractFileFromJarDestDir" value="${extract.dir}/old" />
        <param name="ExtractFileFromJarName" value="WEB-INF/web.xml" />
      </antcall>

      <antcall target="action-extract-file-from-jar">
        <param name="ExtractFileFromJarSrc" value="${extract.dir}/old/wps.war" />
        <param name="ExtractFileFromJarDestDir" value="${extract.dir}/old" />
        <param name="ExtractFileFromJarName" value="dtd/web-app_2_3.dtd" />
      </antcall>

      <echo message="extracting 'META-INF/application.xml' from '${extract.dir}/wps.ear' to directory '${extract.dir}/old'" />
      <antcall target="action-extract-file-from-jar">
        <param name="ExtractFileFromJarSrc" value="${extract.dir}/wps.ear" />
        <param name="ExtractFileFromJarDestDir" value="${extract.dir}/old" />
        <param name="ExtractFileFromJarName" value="META-INF/application.xml" />
      </antcall>

      <antcall target="action-extract-file-from-jar">
        <param name="ExtractFileFromJarSrc" value="${extract.dir}/old/wps.war" />
        <param name="ExtractFileFromJarDestDir" value="${extract.dir}/old" />
        <param name="ExtractFileFromJarName" value="dtd/application_1_3.dtd" />
      </antcall>

      <!-- Modify web.xml and application.xml -->
      <style style="${WpsInstallLocation}/config/templates/updateWebXml.xsl" in="${extract.dir}/old/WEB-INF/web.xml" out="${extract.dir}/new/WEB-INF/web.xml" processor="trax">
        <xmlcatalog>
          <dtd publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" location="${extract.dir}/old/dtd/web-app_2_3.dtd"/>
        </xmlcatalog>
        <param name="wps-default-home" expression="${WpsDefaultHome}"/>
        <param name="wps-personalized-home" expression="${WpsPersonalizedHome}"/>
      </style>

      <style style="${WpsInstallLocation}/config/templates/updateApplicationXml.xsl" in="${extract.dir}/old/META-INF/application.xml" out="${extract.dir}/new/META-INF/application.xml" processor="trax">
        <xmlcatalog>
          <dtd publicId="-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" location="${extract.dir}/old/dtd/application_1_3.dtd"/>
        </xmlcatalog>
        <param name="wps-context-root" expression="${WpsContextRoot}"/>
        <param name="wsrp-context-root" expression="${WsrpContextRoot}"/>
      </style>

      <!-- Update web.xml and application.xml -->
      <echo message="updating '${extract.dir}/old/wps.war' with '${extract.dir}/new/WEB-INF/web.xml'" />
      <antcall target="action-update-jar">
        <param name="UpdateFileSrc" value="${extract.dir}/old/wps.war" />
        <param name="UpdateFileDestDir" value="${extract.dir}/new" />
        <param name="UpdateFileName" value="WEB-INF/web.xml" />
      </antcall>

      <echo message="updating '${extract.dir}/wps.ear' with '${extract.dir}/old/wps.war'" />
      <antcall target="action-update-jar">
        <param name="UpdateFileSrc" value="${extract.dir}/wps.ear" />
        <param name="UpdateFileDestDir" value="${extract.dir}/old" />
        <param name="UpdateFileName" value="wps.war" />
      </antcall>

      <echo message="updating '${extract.dir}/wps.ear' with '${extract.dir}/new/application.xml'" />
      <antcall target="action-update-jar">
        <param name="UpdateFileSrc" value="${extract.dir}/wps.ear" />
        <param name="UpdateFileDestDir" value="${extract.dir}/new" />
        <param name="UpdateFileName" value="META-INF/application.xml" />
      </antcall>

      <delete dir="${extract.dir}/old"/>
      <delete dir="${extract.dir}/new"/>

   </target>


   <target name="action-update-portlets" depends="stop-portal-server,start-portal-server" unless="isSecondNode">
       <echo message=""/>
        <echo message="Export Portlets"/>
        <xmlaccess
          user="${PortalAdminIdShort}"
          password="${PortalAdminPwd}"
          url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
          srcfile="${WpsInstallLocation}/config/work/ExportAllPortlets.xml"
          destfile="${WpsInstallLocation}/config/work/AllPortlets.xml" />
      
        <!-- remove predeployed portlets -->
        <style style="${WpsInstallLocation}/config/script/updateAllPortletsXml.xsl" force="true" in="${WpsInstallLocation}/config/work/AllPortlets.xml" out="${WpsInstallLocation}/config/work/AllPortlets_modified.xml" processor="trax"/>

        <echo message=""/>
        <echo message="Update Portlets"/>
        <xmlaccess
          user="${PortalAdminIdShort}"
          password="${PortalAdminPwd}"
          url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
          srcfile="${WpsInstallLocation}/config/work/AllPortlets_modified.xml"/>

        <!-- call target to update pzn portlets' context root -->
    </target>

    <target name="action-update-localizerservice-properties">
        <!-- update LocalizerService.properties -->
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="LocalizerService.properties"/>
            <setvariable name="locale.default.language" value="${user.language}"/>
        </editfile>

        <!-- handle two exceptions -->
        <if firstValue="${user.language}" operator="==" secondValue="pt">
          <then>
            <if firstValue="${user.country}" operator="==" secondValue="BR">
              <then>
                <editfile>
                    <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="LocalizerService.properties"/>
                    <setvariable name="locale.default.country" value="${user.country}"/>
                </editfile>
              </then>
            </if>
          </then>
        </if>
        <if firstValue="${user.language}" operator="==" secondValue="zh">
          <then>
            <if firstValue="${user.country}" operator="==" secondValue="TW">
              <then>
                <editfile>
                    <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="LocalizerService.properties"/>
                    <setvariable name="locale.default.country" value="${user.country}"/>
                </editfile>
              </then>
            </if>
          </then>
        </if>
    </target>


    <target name="action-update-configservice" depends="action-set-servlet-paths">
        <logmsg level="INFO" task="action-update-configservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="ConfigService.properties"/>
            <setvariable name="wps.home" value="${WpsInstallLocation}"/>
            <setvariable name="was.home" value="${WasUserHome}"/>
            <setvariable name="wps.home.var" value="$(WPS_HOME)"/>
        </editfile>
    </target>

    <target name="action-update-configservice-remotehost">
        <logmsg level="INFO" task="action-update-configservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="ConfigService.properties"/>
            <setvariable name="host.name" value="${WpsHostName}"/>
            <setvariable name="host.port.http" value="${WpsHostPort}"/>
        </editfile>
    </target>

    <target name="action-update-accessbean-properties">
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config" includes="accessbean.properties"/>
            <setvariable name="classname" value="${classname}"/>
        </editfile>
    </target>

<!--
 ##############################################################################
 #  Name: update-contentaccessservice-proxy
 #
 #  Description: task to update the content access service proxy configuration
 #
 #  Usage: call to modify the access service proxy configuration
 #
 #  Syntax:
 #      WPSconfig.{bat | sh} update-contentaccessservice-proxy
 #
 #  Inputs: from wpsconfig.properties
 #
 #          ContentAccessServiceProxyHost=  proxy host
 #          ContentAccessServiceProxyPort=  proxy port
 #
 #  Assumptions/Prerequisites:
 #
 #  Error conditions:
 #      invalid information in properties file.
 ##############################################################################
-->
    <target name="update-contentaccessservice-proxy">
        <logmsg level="INFO" task="action-update-portletserviceregistryservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="PortletServiceRegistryService.properties"/>
            <setvariable name="com.ibm.wps.pe.pc.legacy.service.ContentAccessServiceImpl.proxy.http.host" value="${ContentAccessServiceProxyHost}"/>
            <setvariable name="com.ibm.wps.pe.pc.legacy.service.ContentAccessServiceImpl.proxy.http.port" value="${ContentAccessServiceProxyPort}"/>
        </editfile>
    </target>

    <target name="action-update-deploymentservice">
        <logmsg level="INFO" task="action-update-deploymentservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="DeploymentService.properties"/>
            <setvariable name="wps.appserver.name" value="${ServerName}"/>
        </editfile>
    </target>

    <target name="action-update-vaultservice">
        <logmsg level="INFO" task="action-update-vaultservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="VaultService.properties"/>
            <setvariable name="systemcred.dn" value="${PortalAdminId}"/>
        </editfile>
    </target>

    <target name="action-update-vaultservice-ldap">
        <logmsg level="INFO" task="action-update-vaultservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="VaultService.properties"/>
            <setvariable name="systemcred.dn" value="${PortalAdminId}"/>
        </editfile>
    </target>

    <target name="action-secure-configservice">
        <logmsg level="INFO" task="action-secure-configservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="ConfigService.properties"/>
            <setvariable name="command.sessionvalidator" value="SessionValidatorAuth"/>
            <setvariable name="command.login" value="LoginUserAuth"/>
            <setvariable name="command.logout" value="LogoutUserAuth"/>
            <setvariable name="was.security.enabled" value="true"/>
        </editfile>
    </target>

    <target name="action-unsecure-configservice">
        <logmsg level="INFO" task="action-unsecure-configservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="ConfigService.properties"/>
            <setvariable name="command.sessionvalidator" value="SessionValidatorNoAuth"/>
            <setvariable name="command.login" value="LoginUserNoAuth"/>
            <setvariable name="command.logout" value="LogoutUserNoAuth"/>
            <setvariable name="was.security.enabled" value="false"/>
        </editfile>
    </target>

    <target name="action-update-portletcontainersevice" if="isIseries" depends="action-set-ppr-timeout">
        <logmsg level="INFO" task="action-update-portletcontainersevice" message="Config.update.portal"/>
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="PortletContainerService.properties"/>
            <setvariable name="parallelRenderingTimeOut" value="${parallelRenderingTimeOut}"/>
        </editfile>
    </target>

    <target name="action-set-ppr-timeout" if="isIseries" unless="parallelRenderingTimeOut">
       <logmsg level="INFO" task="action-set-ppr-timeout" message="Config.update.portal"/>
       <property name="parallelRenderingTimeOut" value="4000"/>
    </target>

    <target name="action-update-datastoreservice">
        <logmsg level="INFO" task="action-update-datastoreservice" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="DataStoreService.properties"/>
            <setvariable name="datasource.dbms" value="${DbType}"/>
            <setvariable name="datasource.machineid" value="${portalidhash}"/>
        </editfile>
        <echo message="portalidhash: ${portalidhash}"/>
    </target>

    <target name="action-set-servlet-paths">
        <logmsg level="INFO" task="action-set-servlet-paths" message="Config.update.portal" />
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="ConfigService.properties"/>
            <setvariable name="uri.context.path" value="${WpsContextRoot}"/>
            <setvariable name="uri.home.public" value="${WpsDefaultHome}"/>
            <setvariable name="uri.home.protected" value="${WpsPersonalizedHome}"/>
            <setvariable name="uri.context.path.facade" value="${WsrpContextRoot}"/>
        </editfile>
        <editfile>
            <fileset dir="${WpsInstallLocation}/shared/app/config/services" includes="PortletServiceRegistryService.properties"/>
            <setvariable name="com.ibm.wps.odc.editors.portletintegration.LWEditorConfigServiceImpl.richText.context" value="/${WpsContextRoot}/richText"/>
            <setvariable name="com.ibm.wps.odc.editors.portletintegration.LWEditorConfigServiceImpl.presentation.context" value="/${WpsContextRoot}/presentation"/>
            <setvariable name="com.ibm.wps.odc.editors.portletintegration.LWEditorConfigServiceImpl.spreadSheet.context" value="/${WpsContextRoot}/spreadSheet"/>
            <setvariable name="com.ibm.wps.odc.editors.portletintegration.LWEditorConfigServiceImpl.launcherJspContext" value="/${WpsContextRoot}"/>
        </editfile>
        <!-- web.xml and application.xml -->
    </target>



    <!-- ###################################################### -->
    <!-- DEPLOY PORTLETS -->
    <!-- ###################################################### -->
    <target name="action-deploy-portlets">
        <logmsg level="INFO" task="action-deploy-portlets" message="Config.deploy.portlets" />
        <antcall target="action-deploy-portlets-admin"/>
        <!-- Temporarily disabled, put back on 06/252004 by Jian Li-->
        <antcall target="action-deploy-portlets-biz"/>
        <antcall target="action-deploy-cm-portlets"/>
        <antcall target="action-deploy-transformation-tpl"/>
        <antcall target="action-setup-process-integration"/>
        <antcall target="action-lwp-deploy-people-picker-portlet"/>
        <antcall target="action-lwp-deploy-search-center-portlet"/>
        <antcall target="action-deploy-depp-portlets"/>
        <logmsg level="INFO" task="action-deploy-portlets" message="Config.deploy.portlets.success" />
    </target>

    <!-- Target for deploying portlets for toolkit install. Deploy all portlets except Biz Portlets for Toolkit. -->
    <target name="action-deploy-portlets-toolkit">
        <logmsg level="INFO" task="action-deploy-portlets-toolkit" message="Config.deploy.portlets" />
        <antcall target="action-deploy-portlets-admin"/>
<!-- Temporarily disabled
        <antcall target="action-deploy-portlets-mail"/>
-->
        <logmsg level="INFO" task="action-deploy-portlets-toolkit" message="Config.deploy.portlets.success" />
    </target>

    <!-- Deploy PDM, ODC portlets only if configuring the CM component set. -->
    <target name="action-deploy-cm-portlets" unless="skipCM" >
        <antcall target="cfg-jcr-resources" />
        <antcall target="pdm-portlet" />
        <antcall target="pap-portlet" />
        <antcall target="action-install-portlet-spellcheck" />
    </target>

    <target name="action-deploy-portlets-admin" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/SetupPortal.xml" />
    </target>

    <target name="action-deploy-portlets-biz" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/SetupDazzle.xml" />
    </target>

    <target name="action-deploy-transformation-tpl" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/DeployTPLTransformation.xml" />
    </target>

    <target name="action-setup-process-integration" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/SetupProcessIntegration.xml" />
        <antcall target="action-enable-page-as-task-page-container"/>
    </target>

    <target name="action-enable-page-as-task-page-container" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/enablePageAsTaskPageContainer.xml" />
    </target>

    <target name="action-disable-page-as-task-page-container" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/disablePageAsTaskPageContainer.xml" />
    </target>

    <target name="action-create-deployment-credentials" depends="start-portal-server" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminId}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/createDeploymentCredentials.xml" />
    </target>


    <target name="action-remove-deployment-credentials" depends="start-portal-server" unless="isSecondNode">
        <xmlaccess
            user="${PortalAdminId}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/deleteDeploymentCredentials.xml" />
    </target>


    <!-- Checking for empty Portal Admin Password. -->
    <target name="action-check-portal-admin-pwd">
        <logmsg level="INFO" task="action-check-portal-admin-pwd" message="Config.general" param1="PortalAdminPwd != ''" />
        <wsadmin
            properties="${work.dir}/was/jacl.properties"
            script="${config.dir}/was/wp_CheckPortalAdminPwd.jacl"
            conntype="${wsadminConnType}"
            user="${WasUserid}"
            password="${WasPassword}"
            failonerror="yes">
            <arg value="${WpsInstallLocation}"/>
        </wsadmin>
    </target>


<!--
 ##############################################################################
 #  Name: activate-portlets
 #
 #  Description: task to start and activate the portlets in cluster
 #
 #  Usage: call to activate all installed portlets
 #
 #  Syntax:
 #      WPSconfig.{bat | sh} activate-portlets
 #
 #  Inputs: NONE
 #
 #  Assumptions/Prerequisites:
 #
 #  Error conditions:
 #
 ##############################################################################
-->
    <target name="activate-portlets" if="IsManagedNode">
        <antcall target="action-export-all-portlets"/>
        <antcall target="action-transform-activate-scripts"/>
        <antcall target="action-full-sync-nodes"/>
        <antcall target="action-start-all-portlets"/>
    </target>


    <!-- export all portlet applications -->
    <target name="action-export-all-portlets" >
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/templates/ExportAllPortlets.xml"
            destfile="${WpsInstallLocation}/config/work/AllPortlets.xml" />
    </target>


    <!-- create portlet activation scripts -->
    <target name="action-transform-activate-scripts" >
        <delete file="${WpsInstallLocation}/config/work/StartPortlets.xml"/>
        <style style="${WpsInstallLocation}/config/script/activateportletapps.xsl"
            in="${WpsInstallLocation}/config/work/AllPortlets.xml"
            out="${WpsInstallLocation}/config/work/StartPortlets.xml" processor="trax" />
    </target>


    <!-- start and activate all portlet appications -->
    <target name="action-start-all-portlets">
        <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/StartPortlets.xml" />
    </target>

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.