Building Web targets
The build phase
for a Web target:
- Provides link verification
- Moves the files to a Build folder under the target
folder
to make the files available for deployment
You can build an entire target, or just one file. Building
a file lets you quickly make sure that links from the file work.
Link verification
When the build process verifies the links from one file to
another in the target, it displays information about broken links
in the Output window. It also verifies the syntax–but not
the integrity–of links outside the target.
Double-clicking the broken link in the Output window opens
the file in the HTML Editor. You can choose to fix the link or not.
If you do not fix the link, the deployed files will also have a
broken link.
The Web target processes the following HTML attributes during
link verification:
| ACTION | CODEBASE | HTTP-EQUIV |
| BACKGROUND | DYNSRC | SRC |
| CODE | HREF |
Elements that use these attributes include:
| Element | Attributes processed |
|---|---|
| A | HREF |
| Applet | CODE, CODEBASE |
| Base | HREF |
| Bgsound | SRC |
| Body | BACKGROUND |
| Form | ACTION |
| Frame | SRC |
| Img | SRC, DYNSRC |
| Input | SRC (for TYPE=”image”) |
| IsIndex | ACTION |
| Layer | SRC, BACKGROUND |
| Link | HREF |
| Meta | HTTP-EQUIV |
| Script | SRC |
| Object | CODE, CODEBASE |
| Table | BACKGROUND |
| TD | BACKGROUND |
| TH | BACKGROUND |
Files in Build folder
The Web target build process copies files from the target
Source folder to the target Build folder. These folders are visible
in the Web target development environment (in the Library painter
or in the System Tree when the root is set to My Computer).
Files from the Build folder are processed during deployment
to a Web site. When you explicitly build a target, you can choose
to build all of the files in the target, or only those files that
have changed since the last build.
How to build a target
Invoking the build process whenever you save a file gives
you timely information about the links in the file, and ensures
that you have a copy of your changes in the Build folder–ready
for deployment. You can also build a file or an entire target at
any time.
To build a Web target:
-
On the Workspace tab page of the System
Tree, right-click a target and select one of the following from
the popup menu:Select this menu item To do this Full Build Build all the files in the target Incremental Build Build target files that have changed
since the last buildYou can also set a deployment option to specify if you want
to do a full build or incremental build when you deploy your Web
target. For information on setting this option, see “Editing a deployment configuration”.If you want to build all of the files within a workspace,
you can use the Workspace Run menu. When you build a workspace,
the build processes target files within the active workspace. A
workspace build can also be full or incremental.
To build an individual file:
-
On the Workspace tab page of the System
Tree, right-click a file, then select Build from the popup menu.
To build multiple files (without building a target
or workspace)
-
In the List view of the Library painter,
displace the Source directory under your Web target directory. -
Use the ctrl key to select
all the files you want to build.You can use the shift key instead to select
consecutive files in the list. -
Right-click the selected files and select Build
from the popup menu.