258
Chapter 14 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);
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...