258
// ===================================================================
// Server List:
//
// Local Deployment
// ===================================================================
function Main()
{
var app = Application;
var DeploymentManager = Application.DeploymentManager;
var i,j,n,
//==================================================================
// Logging Options
//==================================================================
DeploymentManager.SetLogging(true);
DeploymentManager.SetLogFileName("C:\\Program
//==================================================================
// End Logging Options
// ================================================================
// =================================================================
// Open the project...
//==================================================================
DeploymentManager.OpenProject("D:\\Projects\\Release Notes\\version
//==================================================================
// Bypass servers and perform local deployment
//==================================================================
DeploymentManager.IsLocalDeployment = true;
//==================================================================
// Project Server Selections
// =================================================================
// Project Server
DeploymentManager.SetDeployState("",true);
//==================================================================
// Set Deployment Flags...
//==================================================================
DeploymentManager.CreateFolder = true;
DeploymentManager.UploadOnlyIfNewer = true;
DeploymentManager.EncryptCFML = false;
DeploymentManager.ForceLowerCase = false;
//==================================================================
// Iterate through Deployment Servers
//==================================================================
for (i = 0; i <= DeploymentManager.ServerCount-1; i++) {
sServerName,sFolderName,sDeployPath,sFromFile,sTargetFile;
Files\\Macromedia\\ColdFusion Studio 5\\Deployment.log");
5\\CFS\\Test1.apf");
if (DeploymentManager.GetDeployServerStatus(i)) {
sServerName = DeploymentManager.GetDeployServername(i);
DeploymentManager.CheckServerFolders(sServerName);
Chapter 14 Scripting the Visual Tools Object Model
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?
Questions and answers