Integrating Source Control

Eclipse has the ability to integrate with many source control packages through addons. This allows Eclipse to manage checking out a file—making it writable—when you first start to edit a file, checking a file in, updating a file, showing a file's status, and a number of other tasks, depending on the support of the add-on. Common source control add-ons are available for CVS, Subversion, Perforce, git, and many other packages.

Generally speaking, not all files are suitable for source control. For Android projects, any file with the bin and gen directories shouldn't be in source control.

To exclude these generically within Eclipse, go to Preferences, Team, Ignored Resources. Add *.apk, *.ap_, and *.dex by clicking the Add Pattern button and adding one at a time.

This page intentionally left blank

Was this article helpful?

0 0

Post a comment