Tuesday, June 30, 2009

Prevent Mylyn auto add new files in context

Problem
I'm using Eclipse Mylyn plugin to be more task-oriented (ha-ha). By default Mylyn auto add new *.java, *. xml (and many other) files (that may not be interesting to you) to the context of the active task. For example, you work in a team on your own particular task, i.e. editing 5 files. And youl collegue commit 50 new files. You update the project and- you've got 55 files in task context but 50 of them absolutely not relative to your current job. In task context I want to see ONLY those files that have been opened by myself.

Fix
Stop Mylyn to monitor new resources!
  1. Eclipse -> Window -> Preferences -> Tasks -> Resources -> Resource Monitor Exclusion
  2. Click on "Add" and provide patterns for the files. " I want to exclude all so the only pattern I have is "*".

Remarks
All above is actual for the Eclipse 3.4 and Mylyn 3.2, but I guess for other version behavior would be the same.

0 comments:

Post a Comment