Building Web targets

The build phase for a Web target:

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:

Table 12-1: HTML elements parsed for link integrity

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.

Table 12-2: Build selection options

Select this menu item

To do this

Full Build

Build all the files in the target and regenerate the Jaguar.properties and Database.properties files

Incremental Build

Build target files that have changed since the last build

StepsTo build a Web target:

  1. On the Workspace tab page of the System Tree, right-click a target and select Full Build or Incremental Build from the pop-up menu.

    You 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. You must do a full build to make sure connection properties for new database or EAServer profiles are available to a JSP target. For information on setting this option, see “Editing a Web site 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.

StepsTo build an individual file:

  1. On the Workspace tab page of the System Tree, right-click a file, then select Build from the pop-up menu.

StepsTo build multiple files (without building a target or workspace):

  1. In the List view of the Library painter, displace the Source directory under your Web target directory.

  2. 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.

  3. Right-click the selected files and select Build from the pop-up menu.