Excluding Files from a Project

Some types of files will never be added to a project, although they may reside in a working folder. For example, suppose you are creating files with an application that makes an automatic backup (.bak) copy of each file every time you save the file. Although your working folder might contain several .bak files, you would have no reason to check them into (or out of ) the application. Therefore, you should exclude them from the project view.

Exclude lists can also be inherited from parent folders.

  1. With a StarTeam perspective or view open, choose StarTeam > Folder > Properties.
  2. Select Folder.
  3. Select the Exclude tab.
    Note: The Exclude tab does not affect files that are already part of the project.
  4. Do one of the following:
    Inherit and Use Local Exclude List
    Excludes files that match the exclude list specifications set for this folder as well as those of its parent folder. If the Local Exclude List text box does not yet include any file specifications, add them.
    Use Local Exclude List
    Excludes files that match the exclude list specifications set for this folder. If the Local Exclude List text box does not yet include any file specifications, add them.
    No Exclude List
    Includes all files.
  5. Type one or more file specifications to use for matching files.

    Use standard expressions (with * and ? wild cards) separated by commas, spaces, or semicolons. To include a comma, space or semicolon as part of the specification, enclose the specification in double quotes.

    A trailing / character means that Not-in-View folders will be excluded. For example, bin/ would cause all Not-in-View folders named bin to be excluded from the folder tree.

    Note: The \ character does not work. It is treated as an escape character.