User Guide

DeploymentManager Object 253
ServerCount
Syntax ServerCount: Integer (read-only)
Description Counts the deployment servers associated with the current open project, including
any new servers that were added temporarily using the
AddServer method.
UploadOnlyIfNewer
Syntax UploadOnlyIfNewer: WordBool (read-write)
Description Boolean. Determines whether the deployment engine only uploads a file if it has a
newer date/time stamp than the target file.
Methods
Server login failures result in an automatic cancellation of the deployment.
AddServer
Syntax AddServer(const wsServerName:WideString,ITServerType:Integer);
Description Temporarily adds a machine-level server to the list of deployment servers. This
server does not become part of the project’s stored deployment server list, but is
added temporarily for custom deployment tasks.
The following ITServerType values are allowed:
1 = FTP
2 = RDS
CheckServerFolders
Syntax CheckServerFolders(sServerName: WideString);
Description Inserted in the generated VBScript/JScript deployment scripts at the appropriate
points, the CheckServerFolders method iterates through all of the assigned
deployment folders for a project, verifying their existence on the target server
(
sServerName). Creates a folder if it does not exist.
Older scripts that do not contain the
CheckServerFolders call will still work. The
CreateFolder property gets passed to the internal CopyFileExtended call and tells
FileProxy to create the directories that do not exist.
ClearServerList
Syntax ClearServerList();
Description Clears the internal list of servers assigned to the project. Use this method to override
the default project deployment server list.