<?xml version="1.0" encoding="UTF-8"?>
<!--
    
    Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2004 - All Rights reserved.
    
    Lotus Collaborative Components configuration tasks

-->

  <property name="lcc.property.file.dir"  value="${WpsInstallLocation}/shared/app/config/"/>
  <property name="lcc.property.file.name" value="CSEnvironment.properties"/> 
  <property name="lcc.property.file"      value="${lcc.property.file.dir}${lcc.property.file.name}"/>
                                                                             
  <property name="quickplace1"      value="quickplace"/>
  <property name="quickplace2"      value="QuickPlace"/>
  <property name="sametime1"        value="sametime"/>
  <property name="sametime2"        value="Sametime"/>
  <property name="discoveryserver1" value="discoveryserver"/>
  <property name="discoveryserver2" value="DiscoveryServer"/>
  <property name="dominodirectory1" value="dominodirectory"/>
  <property name="dominodirectory2" value="DominoDirectory"/>            
                         
<!--
 ##############################################################################
 #
 #  Name: action-lcc-quickplace-tests
 #
 #  Description: This target is used perform tests on Lotus QuickPlace properties
 #               before configuring Lotus Collaborative Components
 #
 #  Detail: 1 - Check to see if Lotus Collaborative Components property files exists
 #          2 - Validate properties and values
 #
 #  Inputs: WebSphere Portal config properties file,
 #          Lotus Collaborative Components properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-quickplace-tests">
      <antcall target="action-lcc-validate-property-file-exists"/>
      <antcall target="action-lcc-validate-properties-and-values">
          <param name="param1-component-name-lowercased" value="${quickplace1}"/>
          <param name="param2-component-name-mixedcase" value="${quickplace2}"/>
          <param name="param3-component-enable-property" value="${LCC.QuickPlace.Enabled}"/>
          <param name="param4-component-protocol-property" value="${LCC.QuickPlace.Protocol}"/>
          <param name="param5-component-server-property" value="${LCC.QuickPlace.Server}"/>
          <param name="param6-component-port-property" value="${LCC.QuickPlace.Port}"/>
      </antcall>      
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-sametime-tests
 #
 #  Description: This target is used perform tests on Lotus Sametime properties
 #               before configuring Lotus Collaborative Components
 #
 #  Detail: 1 - Check to see if Lotus Collaborative Components property files exists
 #          2 - Validate properties and values
 #
 #  Inputs: WebSphere Portal config properties file,
 #          Lotus Collaborative Components properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-sametime-tests">
      <antcall target="action-lcc-validate-property-file-exists"/>
      <antcall target="action-lcc-validate-properties-and-values">
          <param name="param1-component-name-lowercased" value="${sametime1}"/>
          <param name="param2-component-name-mixedcase" value="${sametime2}"/>
          <param name="param3-component-enable-property" value="${LCC.Sametime.Enabled}"/>
          <param name="param4-component-protocol-property" value="${LCC.Sametime.Protocol}"/>
          <param name="param5-component-server-property" value="${LCC.Sametime.Server}"/>
          <param name="param6-component-port-property" value="${LCC.Sametime.Port}"/>
      </antcall>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-discoveryserver-tests
 #
 #  Description: This target is used perform tests on Lotus Discovery Server properties
 #               before configuring Lotus Collaborative Components
 #
 #  Detail: 1 - Check to see if Lotus Collaborative Components property files exists
 #          2 - Validate properties and values
 #
 #  Inputs: WebSphere Portal config properties file,
 #          Lotus Collaborative Components properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-discoveryserver-tests">
      <antcall target="action-lcc-validate-property-file-exists"/>
      <antcall target="action-lcc-validate-properties-and-values">
          <param name="param1-component-name-lowercased" value="${discoveryserver1}"/>
          <param name="param2-component-name-mixedcase" value="${discoveryserver2}"/>
          <param name="param3-component-enable-property" value="${LCC.DiscoveryServer.Enabled}"/>
          <param name="param4-component-protocol-property" value="${LCC.DiscoveryServer.Protocol}"/>
          <param name="param5-component-server-property" value="${LCC.DiscoveryServer.Server}"/>
          <param name="param6-component-port-property" value="${LCC.DiscoveryServer.Port}"/>
      </antcall>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-dominodirectory-tests
 #
 #  Description: This target is used perform tests on Lotus Domino Directory properties
 #               before configuring Lotus Collaborative Components
 #
 #  Detail: 1 - Check to see if Lotus Collaborative Components property files exists
 #          2 - Validate properties and values
 #
 #  Inputs: WebSphere Portal config properties file,
 #          Lotus Collaborative Components properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-dominodirectory-tests">
      <antcall target="action-lcc-validate-property-file-exists"/>
      <antcall target="action-lcc-validate-properties-and-values2">
          <param name="param1-component-name-lowercased" value="${dominodirectory1}"/>
          <param name="param2-component-name-mixedcase" value="${dominodirectory2}"/>
          <param name="param3-component-enable-property" value="${LCC.DominoDirectory.Enabled}"/>
          <param name="param5-component-server-property" value="${LCC.DominoDirectory.Server}"/>
          <param name="param6-component-port-property" value="${LCC.DominoDirectory.Port}"/>
          <param name="param7-component-ssl-property" value="${LCC.DominoDirectory.SSL}"/>
      </antcall>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-property-file-exists
 #
 #  Description: This target is used to see if the Lotus Collaborative Components
 #               property file is available when configuring
 #
 #  Detail: If file does not exist, fail the build.
 #
 #  Inputs: WebSphere Portal config properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Fail the build if the Lotus Collaborative Components
 #                    property file doesn't exist.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-property-file-exists" depends="action-lcc-property-file-test" if="lcc.property.file.notexist">
      <logmsg level="SEVERE" task="action-lcc-validate-property-file-exists" message="LCC.File.Missing" param1="${lcc.property.file}"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-property-file-exists"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-property-file-test
 #
 #  Description: This target is used to see if the Lotus Collaborative Components
 #               property file available when configuring
 #
 #  Detail: If file is not available, set not exist property to true
 #
 #  Inputs: WebSphere Portal config properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-property-file-test">
      <condition property="lcc.property.file.notexist">
          <not>
              <available file="${lcc.property.file}"/>
          </not>
      </condition>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-properties-and-values
 #
 #  Description: This target is used to see if the right properties
 #               are available and does some simple validation
 #               on the values when configuring.
 #
 #  Detail: 1 - If property is not available, fail the build in called target
 #              Checks for: enable, server, protocol, port
 #          2 - Check for true/false Enable value
 #          3 - Check to see if component is enabled, warn build if not enabled
 #          4 - Validate property values if component is enabled
 #
 #  Inputs: WebSphere Portal config properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-properties-and-values" 
          depends="action-lcc-validate-wpconfig-enable-property-exists,
                   action-lcc-validate-enable-property-isboolean,
                   action-lcc-component-enabled-value-test,
                   action-lcc-validate-wpconfig-server-property-exists,
                   action-lcc-validate-wpconfig-protocol-property-exists,
                   action-lcc-validate-wpconfig-port-property-exists" 
          unless="lcc.${param1-component-name-lowercased}.properties.notavailable">
      <antcall target="action-lcc-warn-build-if-component-notenabled"/>
      <antcall target="action-lcc-validate-property-values-if-component-isenabled"/>           
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-properties-and-values2
 #
 #  Description: This target is used to see if the right properties
 #               are available and does some simple validation
 #               on the values when configuring.
 #
 #  Detail: 1 - If property is not available, fail the build in called target
 #              Checks for: enable, server, port, ssl
 #          2 - Check for true/false Enable value
 #          3 - Check to see if component is enabled, warn build if not enabled
 #          4 - Validate property values if component is enabled
 #
 #  Inputs: WebSphere Portal config properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
 <target name="action-lcc-validate-properties-and-values2" 
          depends="action-lcc-validate-wpconfig-enable-property-exists,
                   action-lcc-validate-enable-property-isboolean,
                   action-lcc-component-enabled-value-test,
                   action-lcc-validate-wpconfig-server-property-exists,
                   action-lcc-validate-wpconfig-port-property-exists,
                   action-lcc-validate-wpconfig-ssl-property-exists" 
          unless="lcc.${param1-component-name-lowercased}.properties.notavailable">
      <antcall target="action-lcc-warn-build-if-component-notenabled"/>
      <antcall target="action-lcc-validate-property-values-if-component-isenabled2"/>           
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-wpconfig-enable-property-exists
 #
 #  Description: This target is used to see if the enable property 
 #               is available when configuring
 #
 #  Detail: If property is not available, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: If property is not available, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-wpconfig-enable-property-exists" unless="LCC.${param2-component-name-mixedcase}.Enabled">
      <property name="lcc.${param1-component-name-lowercased}.properties.notavailable" value="true"/>
      <logmsg level="SEVERE" task="action-lcc-validate-wpconfig-enable-property-exists" message="LCC.${param2-component-name-mixedcase}.Properties.Missing.Enable"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-wpconfig-enable-property-exists"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-enable-property-isboolean
 #
 #  Description: This target is used to fail the build if enable property
 #               is set to something other than true or false.
 #
 #  Detail: If Enabled property is not set to true or false, fail the build.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: If Enabled property is not set to true or false, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-enable-property-isboolean" depends="action-lcc-enable-property-isboolean-test" unless="lcc.${param1-component-name-lowercased}.good.enable.value">
      <logmsg level="SEVERE" task="action-lcc-validate-enable-property-isboolean" message="LCC.${param2-component-name-mixedcase}.Enable.Invalid"/>
      <fail message="Lotus Collaboration Components configuration failed at action-lcc-validate-enable-property-isboolean."/>
  </target>
 
<!--
 ##############################################################################
 #
 #  Name: action-lcc-enable-property-isboolean-test
 #
 #  Description: This target is used to check the enable property for
 #               a valid boolean value.
 #
 #  Detail: If Enabled property is not set to true or false, set a variable
 #          to indicate the test failed.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-enable-property-isboolean-test">
      <isboolean value="${param3-component-enable-property}" property="lcc.${param1-component-name-lowercased}.good.enable.value"/>        
  </target> 

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-wpconfig-server-property-exists
 #
 #  Description: This target is used to see if the server property 
 #               is available when configuring
 #
 #  Detail: If property is not available, fail the build.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: If property is not available, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-wpconfig-server-property-exists" unless="LCC.${param2-component-name-mixedcase}.Server">
      <property name="lcc.${param1-component-name-lowercased}.properties.notavailable" value="true"/>
      <logmsg level="SEVERE" task="action-lcc-validate-wpconfig-server-property-exists" message="LCC.${param2-component-name-mixedcase}.Properties.Missing.Server"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-wpconfig-server-property-exists"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-wpconfig-protocol-property-exists
 #
 #  Description: This target is used to see if the protocol property 
 #               is available when configuring.
 #
 #  Detail: If property is not available, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: If property is not available, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-wpconfig-protocol-property-exists" unless="LCC.${param2-component-name-mixedcase}.Protocol">
      <property name="lcc.${param1-component-name-lowercased}.properties.notavailable" value="true"/>
      <logmsg level="SEVERE" task="action-lcc-validate-wpconfig-protocol-property-exists" message="LCC.${param2-component-name-mixedcase}.Properties.Missing.Protocol"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-wpconfig-protocol-property-exists"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-protocol-property-value
 #
 #  Description: This target is used to fail the build if protocol property
 #               is set to something other than http or https.
 #
 #  Detail: If protocol property is not set to http or https, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: If protocol property is not set to http or https, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-protocol-property-value" depends="action-lcc-protocol-property-value-test" unless="lcc.${param1-component-name-lowercased}.good.protocol.value">
      <logmsg level="SEVERE" task="action-lcc-validate-protocol-property-value" message="LCC.${param2-component-name-mixedcase}.Protocol.Invalid"/>
      <fail message="Lotus Collaboration Components configuration failed at action-lcc-validate-protocol-property-value."/>
  </target>
 
<!--
 ##############################################################################
 #
 #  Name: action-lcc-protocol-property-value-test
 #
 #  Description: This target is used to check the protocol property for
 #               a valid value.
 #
 #  Detail: If protocol property is not set to http or https, set a variable
 #          to indicate the test failed.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-protocol-property-value-test">
      <equalsignorecase arg1="${param4-component-protocol-property}" arg2="http" property="lcc.${param1-component-name-lowercased}.good.protocol.value"/>
      <equalsignorecase arg1="${param4-component-protocol-property}" arg2="https" property="lcc.${param1-component-name-lowercased}.good.protocol.value"/>                  
      <echo message="lcc.quickplace.protocol.ok=${lcc.quickplace.good.protocol.value}"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-wpconfig-port-property-exists
 #
 #  Description: This target is used to see if the port property 
 #               is available when configuring
 #
 #  Detail: If property is not available, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: If property is not available, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-wpconfig-port-property-exists" unless="LCC.${param2-component-name-mixedcase}.Port">
      <property name="lcc.${param1-component-name-lowercased}.properties.notavailable" value="true"/>
      <logmsg level="SEVERE" task="action-lcc-validate-wpconfig-port-property-exists" message="LCC.${param2-component-name-mixedcase}.Properties.Missing.Port"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-wpconfig-port-property-exists"/>
  </target>  

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-port-property-isinteger
 #
 #  Description: This target is used to fail the build if port property
 #               is not set to an integer string value.
 #
 #  Detail: If Enabled property is not set to integer string value, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: If port property is not set to integer string value, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-port-property-isinteger" depends="action-lcc-port-property-isinteger-test" unless="lcc.${param1-component-name-lowercased}.good.port.value">
      <logmsg level="SEVERE" task="action-lcc-validate-port-property-isinteger" message="LCC.${param2-component-name-mixedcase}.Port.Invalid"/>
      <fail message="Lotus Collaboration Components configuration failed at action-lcc-validate-port-property-isinteger."/>
  </target>
 
<!--
 ##############################################################################
 #
 #  Name: action-lcc-port-property-isinteger-test
 #
 #  Description: This target is used to check the port property for
 #               a valid integer value.
 #
 #  Detail: If port property is not set to integer string value, set a variable
 #          to indicate the test failed.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-port-property-isinteger-test">
      <isinteger value="${param6-component-port-property}" property="lcc.${param1-component-name-lowercased}.good.port.value"/>        
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-wpconfig-ssl-property-exists
 #
 #  Description: This target is used to see if the SSL property 
 #               is available when configuring
 #
 #  Detail: If property is not available, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: If property is not available, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-wpconfig-ssl-property-exists" unless="LCC.${param2-component-name-mixedcase}.SSL">
      <property name="lcc.${param1-component-name-lowercased}.properties.notavailable" value="true"/>
      <logmsg level="SEVERE" task="action-lcc-validate-wpconfig-ssl-property-exists" message="LCC.${param2-component-name-mixedcase}.Properties.Missing.SSL"/>
      <fail message="Lotus Collaborative Components configuration failed at action-lcc-validate-wpconfig-ssl-property-exists"/>
  </target> 

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-ssl-property-isboolean
 #
 #  Description: This target is used to fail the build if ssl property
 #               is set to something other than true or false.
 #
 #  Detail: If ssl property is not set to true or false, fail the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: If ssl property is not set to true or false, fail the build.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-ssl-property-isboolean" depends="action-lcc-ssl-property-isboolean-test" unless="lcc.${param1-component-name-lowercased}.good.ssl.value">
      <logmsg level="SEVERE" task="action-lcc-validate-ssl-property-isboolean" message="LCC.${param2-component-name-mixedcase}.SSL.Invalid"/>
      <fail message="Lotus Collaboration Components configuration failed at action-lcc-validate-ssl-property-isboolean."/>
  </target>
 
<!--
 ##############################################################################
 #
 #  Name: action-lcc-ssl-property-isboolean-test
 #
 #  Description: This target is used to check the ssl property for
 #               a valid boolean value.
 #
 #  Detail: If ssl property is not set to true or false, set a variable
 #          to indicate the test failed.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This action is run after a check to see if the properties exist.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-ssl-property-isboolean-test">
      <isboolean value="${param7-component-ssl-property}" property="lcc.${param1-component-name-lowercased}.good.ssl.value"/>        
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-warn-build-if-component-notenabled
 #
 #  Description: This target is used to warn the build if enable property is set to false
 #               when configuring.
 #
 #  Detail: If component is not enabled, warn the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: This task depends on the action-lcc-component-enabled-value-test.
 #
 #  Error conditions: Warn the build if enable property is set to false, when configuring.
 #
 ##############################################################################
-->
  <target name="action-lcc-warn-build-if-component-notenabled" if="lcc.${param1-component-name-lowercased}.notenabled">
      <logmsg level="WARNING" task="action-lcc-warn-build-if-component-notenabled" message="LCC.${param2-component-name-mixedcase}.Enable.Warning"/>
  </target>    

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-property-values-if-component-isenabled
 #
 #  Description: This target is used to validate property values if the component
 #               was enabled when configuring.
 #
 #  Detail: If component is being enabled, validate property values
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-property-values-if-component-isenabled" if="lcc.${param1-component-name-lowercased}.isenabled">
      <antcall target="action-lcc-validate-protocol-property-value"/>
      <antcall target="action-lcc-validate-port-property-isinteger"/>          
      <antcall target="action-lcc-validate-server-connection"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-property-values-if-component-isenabled2
 #
 #  Description: This target is used to validate property values if the component
 #               was enabled when configuring.
 #
 #  Detail: If component is being enabled, validate property values
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called targets.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-property-values-if-component-isenabled2" if="lcc.${param1-component-name-lowercased}.isenabled">
      <antcall target="action-lcc-validate-port-property-isinteger"/>          
      <antcall target="action-lcc-validate-server-connection"/>
      <antcall target="action-lcc-validate-ssl-property-isboolean"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-component-enabled-value-test
 #
 #  Description: This target is used to see if the enable property is set to true
 #               or false when configuring.
 #
 #  Detail: 1 - If enable property is set to false, set notenabled property to true
 #          2 - If enable property is set to true, set isenabled property to true
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
  <target name="action-lcc-component-enabled-value-test">
      <isfalse value="${param3-component-enable-property}" property="lcc.${param1-component-name-lowercased}.notenabled"/>
      <istrue value="${param3-component-enable-property}" property="lcc.${param1-component-name-lowercased}.isenabled"/>
  </target> 
 
<!--
 ##############################################################################
 #
 #  Name: action-lcc-validate-server-connection
 #
 #  Description: This target is used to warn the build if server:port
 #               cannot be contacted. This target only performs the test when 
 #               a component is being enabled.
 #
 #  Detail: If server:port cannot be contacted, warn the build.
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Warnings will occur in called actions.
 #
 ##############################################################################
-->
  <target name="action-lcc-validate-server-connection" if="lcc.${param1-component-name-lowercased}.isenabled">
      <antcall target="action-lcc-server-notcontacted-warning"/>      
  </target>
  
<!--
 ##############################################################################
 #
 #  Name: action-lcc-server-notcontacted-warning
 #
 #  Description: This target is used to warn the build if server:port
 #               cannot be contacted.
 #
 #  Detail: If server:port cannot be contacted, warn the build
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Warn the build if server:port cannot be contacted, when configuring.
 #
 ##############################################################################
-->        
  <target name="action-lcc-server-notcontacted-warning" depends="action-lcc-socket-connection-test" unless="lcc.${param1-component-name-lowercased}.socketexist">
      <logmsg level="WARNING" task="action-lcc-server-notcontacted-warning" message="LCC.${param2-component-name-mixedcase}.Hostname.Warning"/>
  </target>
  
<!--
 ##############################################################################
 #
 #  Name: action-lcc-socket-connection-test
 #
 #  Description: This target is used to see if the server:port
 #               can be contacted when configuring.
 #
 #  Detail: If server:port can be contacted, set socketexist property to true
 #
 #  Inputs: WebSphere Portal config properties files.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->  
  <target name="action-lcc-socket-connection-test">
      <socketexists server="${param5-component-server-property}" port="${param6-component-port-property}" property="lcc.${param1-component-name-lowercased}.socketexist"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-validate-dominodirectory-cesprop-enabled-warning
 #
 #  Description: This target is used to to determine if Lotus Domino Directory
 #               was enabled in the Lotus Collaborative Components properties file.
 #
 #  Detail: If Lotus Domino Directory is not enabled, warn the build.
 #
 #  Inputs: WebSphere Portal properties file, 
 #          Lotus Collaborative Components properties file
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
<target name="action-validate-dominodirectory-cesprop-enabled-warning" depends="action-lcc-dominodirectory-cesprop-enabled-test" unless="lcc.dominodirectory.cesprop.enabled">    
    <logmsg level="WARNING" task="action-validate-dominodirectory-cesprop-enabled-warning" message="LCC.DominoDirectory.CESProp.Enable.Warning"/>
</target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-dominodirectory-cesprop-enabled-test
 #
 #  Description: This target is used to to determine if Lotus Domino Directory
 #               was enabled in the Lotus Collaborative Components properties file.
 #
 #  Detail: If Lotus Domino Directory is enabled, set a property.
 #
 #  Inputs: WebSphere Portal properties file, 
 #          Lotus Collaborative Components properties file
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: None.
 #
 ##############################################################################
-->
<target name="action-lcc-dominodirectory-cesprop-enabled-test">
    <property file="${lcc.property.file}"/>    
    <istrue value="${CS_SERVER_DOMINO_DIRECTORY.enabled}" property="lcc.dominodirectory.cesprop.enabled"/>
</target>
  
<!--
 ##############################################################################
 #
 #  Name: lcc-configure-quickplace
 #
 #  Description: This target is used for configuring Lotus QuickPlace for use with 
 #               Lotus Collaborative Components.
 #
 #  Detail: Update Lotus Collaborative Components property file with new values.
 #
 #  Inputs: None.
 #
 #  Syntax: WPSconfig.{bat | sh} lcc-configure-quickplace 
 #
 #  Assumptions/Prerequisites: Lotus Domino Directory must be configured before
 #                             configuring Lotus Sametime.
 #
 #  Postrequisites: WebSphere Portal Server must be restarted for the changes
 #                  to take affect. 
 #
 #  Error conditions: Build Errors occur in called actions.
 #
 ##############################################################################
-->
  <target name="lcc-configure-quickplace">
      <antcall target="action-lcc-update-quickplace-properties"/>
      <antcall target="action-validate-dominodirectory-cesprop-enabled-warning"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-update-quickplace-properties
 #
 #  Description: This target is used to update the Lotus Collaborative Components property file 
 #               to enable Lotus QuickPlace. 
 #
 #  Detail: 1 - Perform tests
 #          2 - Update Lotus Collaborative Components property file with new values
 #          3 - Log message
 #
 #  Inputs: The following inputs com from the portal.properties file
 #          LCC.QuickPlace.Enabled  = Is Lotus QuickPlace enabled in the environment?
 #                                    { true | false }
 #          LCC.QuickPlace.Server   = The Lotus QuickPlace server name.
 #                                    { hostname | ip address }
 #          LCC.QuickPlace.Protocol = The protocol used to connect to the Lotus QuickPlace server.
 #                                    { http | https }
 #          LCC.QuickPlace.Port     = The port number for the Lotus QuickPlace server.
 #                                    { port number }
 #
 #  Assumptions/Prerequisites: This target calls action-lcc-quickplace-tests to ensure the following:
 #                             The Lotus Collaborative Components property file exists.
 #                             The Lotus Collaborative Components new property values exist for Lotus QuickPlace.
 #                             Checks to see if the Lotus Domino Directory enable property is set to true or false.
 #
 #  Error conditions: If action-lcc-sametime-tests fail, a message is logged accordingly.
 #
 ##############################################################################
-->
  <target name="action-lcc-update-quickplace-properties">
      <antcall target="action-lcc-quickplace-tests"/>
      <editfile>
          <fileset dir="${lcc.property.file.dir}" includes="${lcc.property.file.name}"/>
          <setvariable name="CS_SERVER_QUICKPLACE.enabled"    value="${LCC.QuickPlace.Enabled}"/>
          <setvariable name="CS_SERVER_QUICKPLACE_1.hostname" value="${LCC.QuickPlace.Server}"/>
          <setvariable name="CS_SERVER_QUICKPLACE_1.protocol" value="${LCC.QuickPlace.Protocol}"/>
          <setvariable name="CS_SERVER_QUICKPLACE_1.port"     value="${LCC.QuickPlace.Port}"/>
      </editfile>
      <logmsg level="INFO" task="action-lcc-update-quickplace-properties" message="LCC.Update.QuickPlace.Properties"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: lcc-configure-sametime
 #
 #  Description: This target is used for configuring Lotus Sametime for use with 
 #               Lotus Collaborative Components.
 #
 #  Detail: Update Lotus Collaborative Components property file with new values.
 #
 #  Inputs: None.
 #
 #  Syntax: WPSconfig.{bat | sh} lcc-configure-sametime 
 #
 #  Assumptions/Prerequisites: Lotus Domino Directory must be configured before
 #                             configuring Lotus Sametime. 
 #
 #  Postrequisites: WebSphere Portal Server must be restarted for the changes
 #                  to take affect.
 # 
 #  Error conditions: Build errors will occur in called actions.
 #
 ##############################################################################
-->
  <target name="lcc-configure-sametime">
      <antcall target="action-lcc-update-sametime-properties"/>
      <antcall target="action-validate-dominodirectory-cesprop-enabled-warning"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-update-sametime-properties
 #
 #  Description: This target is used to update the Lotus Collaborative Components property file 
 #               to enable Lotus Sametime. 
 #
 #  Detail: 1 - Perform tests
 #          2 - Update Lotus Collaborative Components property file with new values
 #          3 - Log message
 #
 #  Inputs: The following inputs com from the portal.properties file
 #          LCC.Sametime.Enabled  = Is Lotus Sametime enabled in the environment?
 #                                  { true | false }
 #          LCC.Sametime.Server   = The Lotus Sametime server name.
 #                                  { hostname | ip address }
 #          LCC.Sametime.Protocol = The protocol used to connect to the Lotus Sametime server.
 #                                  { http | https }
 #          LCC.Sametime.Port     = The port number for the Lotus Sametime server.
 #                                  { port number }
 #
 #  Assumptions/Prerequisites: This target calls action-lcc-sametime-tests to ensure the following:
 #                             The Lotus Collaborative Components property file exists.
 #                             The Lotus Collaborative Components new property values exist for Lotus Sametime.
 #                             Checks to see if the Lotus Domino Directory enable property is set to true or false.
 #
 #  Error conditions: If action-lcc-sametime-tests fail, a message is logged accordingly.
 #
 ##############################################################################
-->
  <target name="action-lcc-update-sametime-properties">
      <antcall target="action-lcc-sametime-tests"/>
      <editfile>
          <fileset dir="${lcc.property.file.dir}" includes="${lcc.property.file.name}"/>
          <setvariable name="CS_SERVER_SAMETIME.enabled"    value="${LCC.Sametime.Enabled}"/>
          <setvariable name="CS_SERVER_SAMETIME_1.hostname" value="${LCC.Sametime.Server}"/>
          <setvariable name="CS_SERVER_SAMETIME_1.protocol" value="${LCC.Sametime.Protocol}"/>
          <setvariable name="CS_SERVER_SAMETIME_1.port"     value="${LCC.Sametime.Port}"/>
      </editfile>
      <logmsg level="INFO" task="action-lcc-update-sametime-properties" message="LCC.Update.Sametime.Properties"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: lcc-configure-discoveryserver
 #
 #  Description: This target is used for configuring Lotus Discovery Server for use with 
 #               Lotus Collaborative Components.
 #
 #  Detail: Update Lotus Collaborative Components property file with new values.
 #
 #  Inputs: None. 
 #
 #  Syntax: WPSconfig.{bat | sh} lcc-configure-discoveryserver 
 #
 #  Assumptions/Prerequisites: Lotus Domino Directory must be configured before
 #                             configuring Lotus Discovery Server. 
 #
 #  Postrequisites: WebSphere Portal Server must be restarted for the changes
 #                  to take affect. 
 #
 #  Error conditions: Build errors will occur in called actions.
 #
 ##############################################################################
-->
  <target name="lcc-configure-discoveryserver">
      <antcall target="action-lcc-update-discoveryserver-properties"/>
      <antcall target="action-validate-dominodirectory-cesprop-enabled-warning"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-update-discoveryserver-properties
 #
 #  Description: This target is used to update the Lotus Collaborative Components property file 
 #               to enable Lotus Discovery Server. 
 #
 #  Detail: 1 - Perform tests
 #          2 - Update Lotus Collaborative Components property file with new values
 #          3 - Log message
 #
 #  Inputs: The following inputs come from the portal.properties file
 #          LCC.DiscoveryServer.Enabled  = Is Lotus Discovery Server enabled in the environment?
 #                                         { true | false }
 #          LCC.DiscoveryServer.Server   = The Lotus Discovery Server name.
 #                                         { hostname | ip address }
 #          LCC.DiscoveryServer.Protocol = The protocol used to connect to the Lotus Discovery Server.
 #                                         { http | https }
 #          LCC.DiscoveryServer.Port     = The port number for the Lotus Discovery Server.
 #                                         { port number }
 #
 #  Assumptions/Prerequisites: This target calls action-lcc-discovery-server-tests to ensure the following:
 #                             The Lotus Collaborative Components property file exists.
 #                             The Lotus Collaborative Components new property values exist for Lotus Discovery Server.
 #                             Checks to see if the Lotus Discovery Server enable property is set to true or false.
 #                             Checks to see if the Lotus Domino Directory is enabled or disabled.
 #
 #  Error conditions: If action-lcc-discoveryserver-tests fail, a message is logged accordingly.
 #
 ##############################################################################
-->
  <target name="action-lcc-update-discoveryserver-properties">
      <antcall target="action-lcc-discoveryserver-tests"/>
      <editfile>
          <fileset dir="${lcc.property.file.dir}" includes="${lcc.property.file.name}"/>
          <setvariable name="CS_SERVER_DISCOVERY_SERVER.enabled"    value="${LCC.DiscoveryServer.Enabled}"/>
          <setvariable name="CS_SERVER_DISCOVERY_SERVER_1.hostname" value="${LCC.DiscoveryServer.Server}"/>
          <setvariable name="CS_SERVER_DISCOVERY_SERVER_1.protocol" value="${LCC.DiscoveryServer.Protocol}"/>
          <setvariable name="CS_SERVER_DISCOVERY_SERVER_1.port"     value="${LCC.DiscoveryServer.Port}"/>
      </editfile>
      <logmsg level="INFO" task="action-lcc-update-discoveryserver-properties" message="LCC.Update.DiscoveryServer.Properties"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: lcc-configure-dominodirectory
 #
 #  Description: This target is used for configuring Lotus Domino Directory for use with 
 #               Lotus Collaborative Components.
 #
 #  Detail: Update Lotus Collaborative Components property file with new values.
 #
 #  Inputs: None.
 #
 #  Syntax: WPSconfig.{bat | sh} lcc-configure-dominodirectory 
 #
 #  Assumptions/Prerequisites: Lotus Domino Directory must be configured before
 #                             configuring Lotus Sametime, Lotus QuickPlace, and 
 #                             Lotus Discovery Server. 
 #
 #  Postrequisites: WebSphere Portal Server must be restarted for the changes
 #                  to take affect. 
 #
 #  Error conditions: Build errors will occur in called actions.
 #
 ##############################################################################
-->
  <target name="lcc-configure-dominodirectory">
      <antcall target="action-lcc-update-dominodirectory-properties"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: action-lcc-update-dominodirectory-properties
 #
 #  Description: This target is used to update the Lotus Collaborative Components property file 
 #               to enable Lotus Domino Directory.
 #
 #  Detail: 1 - Perform tests
 #          2 - Update Lotus Collaborative Components property file with new values
 #          3 - Log message
 #
 #  Inputs: The following inputs come from the portal.properties file
 #          LCC.DominoDirectory.Enabled = Is Lotus Domino Directory enabled in the environment?
 #                                        { true | false }
 #          LCC.DominoDirectory.Server  = The Lotus Domino Directory server name.
 #                                        { hostname | ip address }
 #          LCC.DominoDirectory.Port    = The port number for the Lotus Domino Directory server.
 #                                        { port number }
 #          LCC.DominoDirectory.SSL     = Is SSL used to connect to the Lotus Domino Directory Server?
 #                                        { true | false }
 #
 #  Assumptions/Prerequisites: This target calls action-lcc-dominodirectory-tests to ensure the following:
 #                             The Lotus Collaborative Components property file exists.
 #                             The Lotus Collaborative Components new property values exist for Lotus Domino Directory.
 #                             Checks to see if the Lotus Domino Directory enable property is set to true or false.
 #
 #  Error conditions: If action-lcc-dominodirectory-tests fail, a message is logged accordingly.
 #
 ##############################################################################
-->
  <target name="action-lcc-update-dominodirectory-properties">
      <antcall target="action-lcc-dominodirectory-tests"/>
      <editfile>
          <fileset dir="${lcc.property.file.dir}" includes="${lcc.property.file.name}"/>
          <setvariable name="CS_SERVER_DOMINO_DIRECTORY.enabled"    value="${LCC.DominoDirectory.Enabled}"/>
          <setvariable name="CS_SERVER_DOMINO_DIRECTORY_1.hostname" value="${LCC.DominoDirectory.Server}"/>
          <setvariable name="CS_SERVER_DOMINO_DIRECTORY_1.port"     value="${LCC.DominoDirectory.Port}"/>
          <setvariable name="CS_SERVER_DOMINO_DIRECTORY_1.ssl"      value="${LCC.DominoDirectory.SSL}"/>
      </editfile>
      <logmsg level="INFO" task="action-lcc-update-dominodirectory-properties" message="LCC.Update.DominoDirectory.Properties"/>
  </target>

<!--
 ##############################################################################
 #
 #  Name: lcc-configure-all
 #
 #  Description: This target is used to configure all Lotus Collaborative Components 
 #               at the same time.
 #
 #  Detail: 1 - Configures Lotus Domino Directory
 #          2 - Configures Lotus QuickPlace
 #          3 - Configures Lotus Sametime
 #          4 - Configures Lotus Discovery Server
 #
 #  Inputs: WebSphere Portal properties file.
 #
 #  Assumptions/Prerequisites: None.
 #
 #  Error conditions: Build errors occur in called actions
 #
 ##############################################################################
-->
<target name="lcc-configure-all">
    <antcall target="lcc-configure-dominodirectory"/>
    <antcall target="lcc-configure-quickplace"/>
    <antcall target="lcc-configure-sametime"/>
    <antcall target="lcc-configure-discoveryserver"/>
</target>

<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-quick-appointment-portlet
 #
 #  Description: This target is used to deploy the Quick Appointment portlet
 #
 #  Detail: Deploy Quick Appointment portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-quick-appointment-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_quickappointment_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-quick-appointment-portlet" message="Config.general.success" param1="Deploy Quick Appointment portlet"/>
   </target>
   
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-quick-email-portlet
 #
 #  Description: This target is used to deploy the Quick e-Mail portlet
 #
 #  Detail: Deploy Quick e-Mail portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-quick-email-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_quickemail_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-quick-email-portlet" message="Config.general.success" param1="Deploy Quick e-Mail portlet"/>
   </target>
      
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-quickplace-portlet
 #
 #  Description: This target is used to deploy the Lotus QuickPlace portlet
 #
 #  Detail: Deploy Lotus QuickPlace portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-quickplace-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_quickplace_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-quickplace-portlet" message="Config.general.success" param1="Deploy Lotus QuickPlace portlet"/>
   </target>
   
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-inline-quickplace-portlet
 #
 #  Description: This target is used to deploy the Inline QuickPlace portlet
 #
 #  Detail: Deploy Inline QuickPlace portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-inline-quickplace-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_quickplace2_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-inline-quickplace-portlet" message="Config.general.success" param1="Deploy Inline QuickPlace portlet"/>
   </target>
   
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-sametime-connect-portlet
 #
 #  Description: This target is used to deploy the Lotus Sametime Connect portlet
 #
 #  Detail: Deploy Lotus Sametime Connect portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-sametime-connect-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_sametime_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-sametime-connect-portlet" message="Config.general.success" param1="Deploy Lotus Sametime Connect portlet"/>
   </target>
   
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-webpage-portlet
 #
 #  Description: This target is used to deploy the Web Page portlet
 #
 #  Detail: Deploy Web Page portlet
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-webpage-portlet" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lcc_webpage_portlet.xml" />
      <logmsg level="INFO" task="lcc-deploy-webpage-portlet" message="Config.general.success" param1="Deploy Web Page portlet"/>
   </target>
   
<!--
 ##############################################################################
 #
 #  Name: lcc-deploy-all-portlets
 #
 #  Description: This target is used to deploy all Lotus Collaborative Component portlets
 #
 #  Detail: Deploy all Lotus Collaborative Component portlets
 #
 #  Inputs: user     - Portal Admin Short ID
 #          password - Portal Admin Password
 #          url      - XMLAccess URL
 #          srcfile  - XML deployment script
 #
 #  Assumptions/Prerequisites: none
 #
 #  Error conditions: If the deployment fails, XML Access will print an error
 #
 ##############################################################################
-->                         
   <target name="lcc-deploy-all-portlets" depends="init" if="isZos">
      <xmlaccess
            user="${PortalAdminIdShort}"
            password="${PortalAdminPwd}"
            url="http://${WpsHostName}:${WpsHostPort}/${WpsContextRoot}/config"
            srcfile="${WpsInstallLocation}/config/work/lccportlets.xml" />
      <logmsg level="INFO" task="lcc-deploy-all-portlets" message="Config.general.success" param1="Deploy all Lotus Collaborative Component portlets"/>
   </target>            

 

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

 

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