Setting up the static Web server assets deployment Ant script

To deploy static Web server assets to a remote Web server with different file transfer methods, the server deployment scripts require you to provide a custom static Web server assets deployment Ant build file that is run as part of the server deployment process.

Note: If you do not have static Web server assets to deploy, skip this section.
The WCBD_deploy_server_dir/static-web-deploy directory contains sample scripts for some popular file transfer protocols:
SCM Directory
FTP wcbd-sample-static-web-deploy-ftp.*
Local filesystem wcbd-sample-static-web-deploy-local.*
SCP or SFTP wcbd-sample-static-web-deploy-scp.*
Note: protocol refers to one of ftp, local or scp that suits your environment.

If a sample script is not provided for the file transfer protocol used in your customization project, see Customizing the server deployment process to create one.

Procedure

  1. If WCBD_deploy_server_dir/static-web-deploy/wcbd-sample-static-web-deploy-protocol.private.properties exists, copy the file as WCBD_deploy_server_dir/static-web-deploy-protocol.private.properties.
  2. Copy WCBD_deploy_server_dir/static-web-deploy/wcbd-sample-static-web-deploy-protocol.properties as WCBD_deploy_server_dir/static-web-deploy-protocol.properties.
  3. Copy WCBD_deploy_server_dir/static-web-deploy/wcbd-sample-static-web-deploy-protocol.xml as WCBD_deploy_server_dir/static-web-deploy-protocol.xml.
  4. For IBM i OS operating systemSolarisLinuxAIXChange the file permission with the following command:
     chmod 755 WCBD_deploy_server_dir/static-web-deploy-protocol.*
  5. Open WCBD_deploy_server_dir/static-web-deploy-protocol.xml with a text editor and replace the name attribute of the root project element from wcbd-sample-static-web-deploy-protocol to static-web-deploy-protocol. For example, if the file transfer protocol is FTP, then WCBD_deploy_server_dir/static-web-deploy-ftp.xml should have the following line:
    • <project name="wcbd-sample-static-web-deploy-ftp" default="all">
    changed to:
    • <project name="static-web-deploy-ftp" default="all">
  6. If step 1 is applicable, open WCBD_deploy_server_dir/static-web-deploy-protocol.private.properties with a text editor and edit the properties according to the comments in the file. Properties in this file will be encoded when the deployment process is run.
  7. Open WCBD_deploy_server_dir/static-web-deploy-protocol.properties with a text editor and edit the properties according to the comments in the file.