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 Workbench User Guide
Previous Page Home Next Page

Creating a global ignore pattern

When synchronizing resources, often there are resources that you do not want to commit to the repository. The Workbench provides a global pattern matching facility for ignoring resources that can appear anywhere in your project hierarchy.

  1. Open the Team > Ignored Resources preference page. This displays a list of resource name patterns against which resources will be screened, before they are considered as candidates for version control.
  2. Click the Add Pattern... push button and type the pattern that you want to match, for example *.obj.
  3. Click OK.

All files with an extension that matches the pattern that you added will be excluded from version control.

The patterns that you define may contain the wildcard characters * and ?. The asterisk represents any sequence of zero or more characters, the question mark represents a single character. For example, you can specify a pattern of *~, which would match any temporary files that end with a tilde (~). Any file or directory that matches any one of the patterns will be ignored when files are being considered for version control. You can temporarily disable ignoring the resource name pattern by deselecting it from the list. You do not have to remove the specified pattern from the list.

It is important to note that the path leading up to the resource name is not included in the matching. For example, for the file "/path/to/file.txt", only the string "file.txt" is matched against the patterns. This facility is not intended for specifying fully-qualified path names but for specifying globally applicable patterns.

Related concepts
Team programming with CVS

Related tasks
Version control life cycle: adding and ignoring resources
Overriding or removing resource ignore patterns
Synchronizing with the repository


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