How do I stop Eclipse from refreshing some dir?

前端 未结 10 1227
日久生厌
日久生厌 2020-12-30 03:38

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 wo

相关标签:
10条回答
  • 2020-12-30 04:09

    For individual directories you can do it by adding Resource filters.

    1. Right-click a project folder in Project Explorer tree and go to "Properties".
    2. Resource -> Resource Filters.
    3. Add as much exclusion filters for files/folders as you like.

    See this answer: https://stackoverflow.com/a/6321688/1194584

    0 讨论(0)
  • 2020-12-30 04:10

    I'm sorry but I don't know anything about such a setting. As one already mentioned you could close the project within Eclipse (once it is open). This prevents the repetitive refreshing on that project. Otherwise I can just give you the suggestion to have 1 workspace per project and not include multiple different projects into the same workspace (unless they are related to each other). This is a much better practice and what I'm doing every day when working with Eclipse. And I didn't experience any problems so far of the type you mentioned.

    0 讨论(0)
  • 2020-12-30 04:14

    You know what. Just close unused projects and that's was all for me.!

    0 讨论(0)
  • 2020-12-30 04:15

    If your problem is the refresh on startup, try: Preferences -> General -> Startup and Shutdown -> Refresh workspace on startup.

    0 讨论(0)
  • 2020-12-30 04:19

    I ran in to this same problem. When an eclipse project refreshes it seems to want to touch every file regardless of settings. The code base I'm working on has ~70K files, and took nearly 2 minutes to refresh. I eventually redefined the eclipse project to be a much smaller subset of that (~10K files) that has a ~ 1 second refresh. Not ideal, but the long refresh times are intolerable.

    FYI the "Derived" check box and "Exclude from build..." options DON'T prevent a folder from being refreshed.

    Note, the computer I'm using is 4-5 years old (Pentium IV processor, 7200 rpm hard drive). I bet one of these newer fast solid state hard drives would dramatically improve refresh times!

    0 讨论(0)
  • 2020-12-30 04:21

    Edit the file .project inside the folder .metadata.plugins\org.eclipse.jdt.core.org.eclipse.jdt.core.external.folders of your workspace folder.

    Then remove any content between the linkedResources tags.

    That worked for me (eclipse-jee-helios-SR2-win32)

    0 讨论(0)
提交回复
热议问题