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
- 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.
- 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.
- 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.
Change the file permission with the following command:
chmod 755 WCBD_deploy_server_dir/static-web-deploy-protocol.*
- 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 tostatic-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">
-
<project name="static-web-deploy-ftp" default="all">
-
- 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.
- 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.