DeploymentManager object
285
UploadFile
Syntax
UploadFile(const wsFile:Widestring, sTargetFile: WideString);
Description
Uploads an individual file to the server. The first
OleString
represents the fully
qualified path of an individual file to upload. The second
OleString
represents the
fully qualified target name, such as rds://localhost/main/index.html.
UploadProject
Syntax
UploadProject(const wsProjectName: WideString);
Description
Uploads an entire project based on the fully qualified project name passed as an
OleString
. This triggers the default deployment engine processing loop which
iterates through each server assigned to the project, each folder within the project,
and uploads all the files contained within each folder. During this process, skips any
folders that are configured as Do not deploy folders.
Project folder names
Project folder names are stored in the following format: Project/Folder/Subfolder1[/
SubFolder2… SubFolderN], where:
Project represents the name of the project
Folder represents the topmost folder in the project
SubFolder1 represents a folder stored relative to Folder
SubFolder2..SubFolderN represent folders that are stored relative to SubFolder1 in a
hierarchical fashion.
To use any of the existing folder-related
DeploymentManager
calls, you must pass the
fully qualified folder name starting from the project name itself. For example, if you
have a project called Project1 and a Main folder that contains an Images folder, and
you must retrieve the count of how many files you have in the Images folder, the
proper call is:
ICount = GetFolderFileCount("MyProject/Main/Images");
// Returns count of files in Images
Sample deployment script
// ==================================================================
// This sample script was generated by the Deployment Wizard,
// using the Project Element Iterator Script option.
// ===================================================================
// Project Name:
// Date/Time Generated:
Содержание HOMESITE
Страница 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Страница 12: ...xii Contents...
Страница 20: ...xx About This Book...
Страница 28: ...8 Chapter 1 Setting Up the Product...
Страница 70: ...50 Chapter 4 Managing Files...
Страница 88: ...68 Chapter 5 Writing Code and Web Content...
Страница 116: ...96 Chapter 6 Editing Pages...
Страница 148: ...128 Chapter 7 Using Web Development Languages...
Страница 190: ...170 Chapter 11 Deploying Files...
Страница 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Страница 216: ...196 Chapter 13 Extending the Help System...
Страница 350: ...330 Glossary...
Страница 358: ...338 Index...