Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Inclusion and Exclusion Patterns

Inclusion and Exclusion patterns can be configured for source folders. They define which files are considered by the Java builder and other Java tooling. This set of files consists of all files and folders where the path relative to the source folder matches an inclusion pattern but not an exclusion pattern.

By default, all files and folders contained in a source folder are included. By defining an inclusion pattern, the set of included resources will be limited to the resources matching the inclusion pattern. Using exclusion patterns, some of these resources can be excluded again.

Exclusion patterns are required when nesting source folders. The nested folder must be excluded from the outer source folder.

The patterns have the same format as ANT patterns:

  • '*' matches zero or more characters, '?' matches one character.
  • '/' is used to separate folders: This means the first segment in the pattern is matched against the most outer folder name in the path to match, the second segment with the second, and so on.
  • '**' matches any number of folders

Related concepts

Java builder
Classpath variables
Access rules

Related reference

Java Build Path properties


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire