Actions performed by the build and deploy scripts
The build and deployment scripts perform the following actions, which are based on the parameters that are passed when they are invoked.
- The first parameter identifies the map compiler platform that the script is to use.
- If the FTP user name parameter is passed to the script, then the remaining parameters must also be passed (FTP password, FTP server, and the Transformation Extender target directory on the remote server).
- A local deploy directory structure is created after parameter validation, if the directory
structure does not already exist. This directory is created so that all of the files that need to be
deployed are in a single directory.
The structure of this directory resembles the pack directory structure. The directory is created under the directory from which the batch file is running.
These corresponding directories are created:- The build_deploy_jvc.bat file creates the directory deployment_jvc under the mt\jvc\maps directory.
- The build_deploy_lmf.bat file creates the directory deployment_lmf under the mt\lmf\maps directory.
- The build_deploy_mx_validation.bat file creates the directory deployment_mx_validation under the mx\maps directory.
- All maps for the system are compiled into the deploy directory for the operating system and are then passed to the script as the first parameter.
- Any supporting files are then copied to the deploy directory.
- FTP and SFTP deployment scripts are created from a template file (a file with an
.scp extension). This file is in the same directory as the batch script at
execution time. For security purposes, these scripts are deleted after the deployment
completes.Note: If you must keep these FTP scripts for debugging purposes, comment out the line 'del deploy.scp' in the batch script.
- All of the files in the local deployment directory are transferred through use of FTP by default. They can, however, be modified by using SFTP.
- When script execution is complete, a log file named build script name.log is available in the same directory as the script. The log file lists all of the actions that are performed by the script, and whether the action was successful