286
Chapter 15 Scripting the Visual Tools Object Model
// ===================================================================
// Server List:
//
// Local Deployment
// ===================================================================
function Main()
{
var app = Application;
var DeploymentManager = Application.DeploymentManager;
var i,j,n,
sServerName,sFolderName,sDeployPath,sFromFile,sTargetFile;
//==================================================================
// Logging Options
//==================================================================
DeploymentManager.SetLogging(true);
DeploymentManager.SetLogFileName("C:\\Program
Files\\Macromedia\\ColdFusion Studio 5\\Deployment.log");
//==================================================================
// End Logging Options
// ================================================================
// =================================================================
// Open the project...
//==================================================================
DeploymentManager.OpenProject("D:\\Projects\\Release Notes\\version
5\\CFS\\Test1.apf");
//==================================================================
// 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++) {
if (DeploymentManager.GetDeployServerStatus(i)) {
sServerName = DeploymentManager.GetDeployServername(i);
DeploymentManager.CheckServerFolders(sServerName);
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...