Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Software Package Builder 2.0 User's Guide: for HP-UX 11i v1 and 11i v2 > Chapter 5 Advanced Features

Managing Fileset Content

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

This section provides additional information on the Manage Fileset Content dialog box and its advanced features. Figure 5-1 highlights the regions and features.

Figure 5-1 Manage Fileset Content Dialog Box

Manage Fileset Content Dialog Box

The Manage Fileset Content dialog allows you to map source files and directories to the destination filesystem and exercise control over directory and file attributes. The following is a description of the regions and features identified in Figure 5-1 “Manage Fileset Content Dialog Box”:

Regions and Features

  1. Source Filesystem - Allows navigation of the Source Filesystem for selection of files and directories to be mapped to the Destination Filesystem.

  2. Add button - Adds the files or directories selected from the Source Filesystem to the Destination Filesystem. Multiple files or directories may be selected for addition. If the Recursive checkbox is selected, all files or directories contained in the selected directory will be implicitly added.

  3. Move-up Directory Level button - Allows you to move up one directory level in the Source Filesystem. The button is represented by a folder and up arrow, located at the bottom of the Source Filesystem.

  4. Destination Filesystem - Displays the destination filesystem structure you have created for the package.

  5. Destination Filesystem buttons

    • Add Directory button - Adds a new directory to the Destination Filesystem. You can edit the directory name in the Destination Filesystem view or in the Directory Attributes table. Multiple directories can be added by specifying a path for the directory name.

    • Add File button - Adds a new file to the Destination Filesystem.

  6. Directory Attributes and File Attributes Tables

    • Directory Attributes table allows you to set permissions and other system properties.

    • Files Attributes table allows you to edit the source path, and set permissions and other system properties.

  7. Advanced Options button - Launches the Advanced Options dialog box that allows you to customize file mode access permissions and enable the Implicit and/or Include file mapping functionality.

Using Advanced Features

File Mapping Options

Numerous options are available from within the Manage Fileset Content dialog box when mapping files from the Source Filesystem to the Destination Filesystem:

  • Recursive - The recursive option adds the selected directory and all its contents recursively. Individual filenames are listed in the PSF.

  • File * - This option is similar to the Recursive option; however, all files are implicitly added and represented only by an asterisk ( * ). The individual filenames are not listed in the PSF using this option. If you want to recursively include files and directories from the Source Filesystem without explicitly listing each file and directory, select the File * option.

  • Include - This option allows you to enable the ability to map a file to the Destination Filesystem, which consists of a list of files, in PSF syntax, to include in the package.

IMPORTANT: If File * is used to add files, you will not be able to display the individual filenames from the Destination Filesystem. This makes it difficult to determine if you are delivering more files or directories than intended. A common problem encountered when using the File * option is the accidental inclusion of source control directories (e.g., RCS, CVS) and/or editor scratch files to the package. Selecting the Recursive option is an alternative way to explicitly add all files and directories under a particular directory. Using the Recursive option allows the packager to display and verify the files and directories that will be included, avoiding accidental inclusion of unnecessary files.

Setting File Mapping Options

You can set one of three file mapping options using the following steps:

Procedure 5-1 To set the recursive option

  1. Select the Recursive checkbox.

  2. Once the appropriate source and destination directories have been selected, click Add.

  3. Continue adding directories recursively or clear the Recursive checkbox.

Procedure 5-2 To set the file * or include option

  1. Click the Advanced Options button.
    The Advanced Options dialog box displays, as shown in Figure 5-2.

    Figure 5-2 Advanced Options Dialog Box

    advanced optionsdialog boxAdvanced Options Dialog Box
  2. Select the file mapping option you want to enable by clicking in the check box. This will enable the mapping option and display a checkbox on the Manage Fileset Content main window., as shown in Figure 5-3.

    Figure 5-3 File Mapping Options Enabled

    File Mapping Options Enabled
  3. From the main window, select the appropriate file mapping option.

  4. Once the source and destination directories have been selected, click Add.

  5. Continue adding directories using the selected file mapping method or clear the checkbox.

NOTE: Only one file mapping option can be applied at a time. Once you have selected a file mapping option, you must clear the checkbox to disable the option.

File Mode Access Permissions

In the Mode field of the Directory Attributes and File Attributes tables (as shown in Figure 5-1 “Manage Fileset Content Dialog Box”) a drop-down list appears that allows you to select file mode access permissions. You can select from the following options:

For File Attributes:

  • Executable (0555)

  • Data (0444)

  • Writable (0644)

  • Inherit - File will inherit permissions from the file system. The default mode permission is Inherit.

  • Specify - A Mode dialog box appears allowing you to set your own permissions.

For Directory Attributes:

  • Directory (0755)

  • Inherit - File will inherit permissions from the directory. The default mode permission is Inherit.

  • Specify - A Mode dialog box appears allowing you to set your own permissions.

Procedure 5-3 To apply a mode to all files

  1. Place the cursor in any of the file's Mode fields and right-click.
    A drop-down list appears.

  2. Select Apply to All.
    A Mode dialog box appears.

  3. Select the appropriate mode for all files that currently appear in the File Attributes table.

Procedure 5-4 To change the default representation of the Mode field

The default representation for file mode access permissions is octal (e.g., 0644). However, you have the option to display the symbolic representation for permissions (e.g., rw-r--r--).

  1. Select the Advanced Options button.
    The Advanced Options dialog box displays, as shown in Figure 5-4.

    Figure 5-4 Permissions Selections

    setting file permissions displaysettingfile permissions displayPermissions Selections
  2. Select Symbolic to change the mode permissions display.

  3. Click OK.
    The Mode field now displays a symbolic representation, as shown in Figure 5-5.

    Figure 5-5 Symbolic Permissions Representation

    Symbolic Permissions Representation
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2002-2004 Hewlett-Packard Development Company, L.P.