Eclipse - Ignore Entire Directories

前端 未结 4 1361
悲哀的现实
悲哀的现实 2021-02-12 09:19

I use Aptana Studio (based on Eclipse). I\'m trying to get Eclipse to completely ignore an entire directory inside a project. I mean COMPLETELY. I don\'t want it to display i

相关标签:
4条回答
  • 2021-02-12 09:31

    Try right-clicking "Properties" and unchecking all permissions.

    0 讨论(0)
  • 2021-02-12 09:35

    If you have a linked resource (pointing off to some other file/folder on disk) with the same name in the same location in the resource tree, then the real folder on disk will be hidden from the resource model.

    Unfortunately you can't create the linked resource if the real directory is already there in the project structure. You can try something like this:

    1. On disk, rename/move the directory in question
    2. Refresh the project, the directory is gone
    3. Create a linked resource ( New -> File/Folder >> Advanced -> Link to file in the file system ). Name it the same as the original directory.
    4. On disk, restore the original name of the directory
    5. Refresh project.
    0 讨论(0)
  • 2021-02-12 09:45

    Not sure about this aptana thing, but there is a convenient way to do it in native eclipse:

    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.

    If your project tree is not refreshed immediately, press F5 to enforce it.

    0 讨论(0)
  • 2021-02-12 09:49

    Consider also the 'Derived' checkbox: right-click an entry in the package explorer, choose properties, check Derived. This may solve part of your problem.

    See http://robmayhew.com/eclipse-ignore-folder/

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