How do I stop Eclipse from refreshing some dir?

Fortepianissimo picture Fortepianissimo · Jun 14, 2009 · Viewed 25.7k times · Source

Every time I start Eclipse it tries to refresh an entire project, which translates to more than 10 minutes of wait time, not to mention the ridiculous amount of memory it would consume.

I know there's a global setting to turn off automatic refreshing (General -> Workspace -> Refresh automatically). Is there a way to turn that off on individual directories? The rationale is that some directories are seldom changed in some of my projects.

Answer

VonC picture VonC · Jun 14, 2009

According to this thread, no:

  • no settings per projects (for disabling auto-refresh)
  • no settings per directory within one project.

For more recent versions of Eclipse, as detailed in Eclipse help page, you can use Resource filters (also initially mentioned below by pcoucke)

Resource filters can be created, edited and removed in the File > Properties > Resource > Resources Filters property page for a project or folder resource.

Resource filters only apply to files and/or folders that are implicitly included in the workspace by the refresh operation
An "Exclude" resource filter prevent all files and/or folders that match the filter condition to be included in the workspace during the refresh operation.

I mentioned an example in "How to have .git folders ignored by Eclipse projects"

resource filter