User Guide

DeploymentManager Object 259
// ===========================================================
// Iterate through Project Folders
//===========================================================
for (j=0; j <= DeploymentManager.FolderCount-1; j++) {
sFolderName = DeploymentManager.GetFolderName(j);
sDeployPath = DeploymentManager.GetFolderDeployPath(j);
//=========================================================
// isFolderDeployable reflects the Deployment Options you
chose for the folder
//==========================================================
if (DeploymentManager.IsFolderDeployable(sFolderName)) {
// =====================================================
// Iterate through Folder Files
//=======================================================
for (n=0; n <=
DeploymentManager.GetFolderFileCount(sFolderName)-1; n++) {
sFromFile =
DeploymentManager.GetFolderFileName(sFolderName,n);
sTargetFile =
DeploymentManager.GetDeployTargetName(sServerName,sFolderName,
n);
DeploymentManager.UploadFile(sFromFile,sTargetFile);
} // n...
} // if (IsFolderDeployable(sFolderName))...
} // j...
} // if GetDeployServerStatus...
} // i...
DeploymentManager.CloseProject();
}