Creating an include or exclude file (optional)

Create an include or exclude file to include certain members in or exclude certain members from a package on Linux or UNIX.

About this task

Use the optional include/exclude file to include or exclude certain members when you create a package on Linux or UNIX. These files are text files that you create on your build or packaging machine. The include/exclude file format is similar to the ship list filter file format. For information about ship list filter file formatting, see Creating a ship list filter file.
Note: IBM i and z/OS use include and exclude tables in the package definition instead of an include/exclude file.

Procedure

  1. Create a text file on your packaging system. Refer to the Example section to review the required file format.
  2. Open your package definition: In the Team Artifacts view, expand the Enterprise Extensions node, then the Packages node. Right-click the package definition you want to work with and select Open Package Definition, or double-click your package definition.
    The Package Definition editor opens.
  3. Open the Linux/Unix Packaging tab.
  4. Set the Include or Exclude field to the full path to your include or exclude file on your packaging machine.
    Note: Expand the Package node on the Linux/UNIX Packaging tab, and specify your file in the Exclude file field.

Example

Again, the include/exclude file format is similar to the ship list filter file format. For information about ship list filter file formatting, see Creating a ship list filter file.

The following is an example of an exclude file for AIX®:

To exclude all files with the extension .c from the hello_world folder, your exclude file would be similar to this sample:

<?xml version="1.0"?>
<manifest type="MANIFEST_LIST">
<container name="hello_world" type="directory">
<resource name="*.c" type="file"/>
</container>
</manifest>