Specifying Files to Ignore in a Filesystem

If you have files in a filesystem that you do not want to be recognized by the IDE, you can configure the IDE to ignore these files. Ignored files are neither displayed in the IDE nor accessed by the IDE. However, ignored files are accessible to external commands called by the IDE, such as compiling commands.

To specify files to be ignored in a filesystem:

  1. Right-click the filesystem's root node and choose Properties.
  2. Click the Expert tab in the property sheet.
  3. Select the Ignored Files property. Enter a POSIX-style regular expression to specify the files you want ignored.

The following are some useful characters for regular expressions.

Character Description
|Or.
^Matches all file or directory names beginning with the subsequent characters.
$Matches all file or directory names ending with the preceding characters.
\Escape character. Necessary if you want to match to a period (.) or other special character.
.*Wildcard.

For example, if you want to ignore all files with the .bak extension, type \.bak$ in the Ignored Files property.

You can also use more complex regular expressions. For example, if you have a CVS directory mounted in the IDE as a local directory instead of as a CVS filesystem, you can use the following regular expression to ignore files that are created by CVS:

^CVS$|^\.#|^\.cvsignore$|\.rej$
All files or directories named CVS or .cvsignore, all files or directories beginning with .#, and all files ending with .rej are ignored if you use this regular expression.

See also
Filesystems and the Java Class Path
Mount a Filesystem
Opening a File Not in a Mounted Filesystem
Changing the Mount Order of Filesystems
Mounting a CVS Filesystem

Legal Notices