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, though they still are accessible to external commands called by the IDE (such as for compiling).
To specify files to be ignored in a filesystem:
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.
As a more complex example of the regular expression syntax, the following expression would be useful if you decided to mount a CVS filesystem as a local directory (instead of mounting it as a CVS filesystem and thus using the IDE's CVS support) and wanted the IDE to ignore the special files 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
would
be ignored.
See also | |
---|---|
Filesystems and the Java Classpath
Mount a Filesystem Opening a File not in a Mounted Filesystem Changing the Mount Order of Filesystems Mounting a CVS Filesystem |