About extending the Simple File Deployment service
21
•
Detection of file changes by other applications
You can add functionality so that the service is aware when files have been changed by
applications other than Contribute, such as Macromedia Dreamweaver.
•
Removal of extra files
You can enable the service to remove certain extraneous file types, including image references
on a page.
•
A hierarchal view of files
You can enhance the file viewer so that it’s easier to see which files have been changed and need
to be deployed to the live server.
To find the Simple File Deployment service files for extending:
1.
Locate the files in the following default location:
C:/Program Files/Macromedia/Contribute Publishing Server/jrun4/servers/
contribute-wps/contribute/customservices_code/filedeployer
This folder contains the uncompiled code for the service, which you can modify.
Note:
If you want to use the service as is (without extending it), see
“Setting up the Simple File
Deployment service” on page 8
.
2.
Modify any of the following files as desired.
3.
After you extend the Simple File Deployment service and are ready to use it, see
“Accessing and
using the Simple File Deployment service” on page 9
.
Note:
If you have not completed the procedure in
“Setting up the Simple File Deployment service”
on page 8
, you should review that section before you use the service. Depending on your
implementation of the Simple File Deployment service, you might need to perform some or all of
the set-up steps in that procedure.
File
Description
index.cfm
Contains the user interface for the change lists, control buttons, error
messages, and so on.
core.cfc
Contains the code that tracks Contribute changes, reads the settings
files, and marshals responses.
settings.xml
Contains the settings for the Simple File Deployment service.
deployfile.cfc
Copies and deletes files from the website.
Note:
This file uses basic file system operations. If these
operations are not sufficient, you can modify this file to
implement your own methods (without knowing the rest of the
architecture).
events.cfc
Supplies handlers for the Contribute Publish, Rollback, and Delete
events.
events.cfm
Receives SOAP messages from Contribute and then sends them to
events.cfc.