Bug 154089

Summary: Add ability to "remember" that a resource is derived when said resource is deleted
Product: [Eclipse Project] Platform Reporter: Daniel Serodio <eclipse.dserodio>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: andreas.r.fischl.work, digulla, eclipsebugs.machineghost, kon, m.kurz, matrixfrog+eclipsebugs, nniesen.mn, tmenzel
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daniel Serodio CLA 2006-08-16 12:30:17 EDT
I've seen similar requests in the newsgroups quite a few times:

User marks the "build" (for Ant) or "target" (for Maven) folders as derived resources. When the user does a "clean" build using one of these tools, the corresponding folder is deleted and re-created. In this process, Eclipse "forgets" that the folder is derived.

It would be nice if Eclipse could remember that a resource is derived when said resource is deleted.
Comment 1 thomas menzel CLA 2009-11-06 02:30:45 EST
i 2nd that notion and i also think that derived resources should not only be remembered in some workspace config but be stored with the project itself. 

USE CASE
if often have to unload projects to work on a branch or just to have less projects hanging around and that info gets lost each time!

possibilities:
- .projects folder 
- new file: .derived or .derivedResources to be more verbose.

in there you could have 2 diff. types: remember by name and remember by pattern

:thinking:

writing this, i just noticed this is the same idea as with svn:ignore. *maybe* it is a good idea to mark all files that are ignored by SVN or CVS as derived by default. since this is an automated process there should be a hint that this happens at least once (e.g. when importing the project) or this is an option in the preferences that must be turned on.

also, to make things visible in the explorer views it would be good to have an overlay for this or some other visual feedback.
Comment 2 Szymon Brandys CLA 2010-06-10 05:21:37 EDT
*** Bug 316425 has been marked as a duplicate of this bug. ***
Comment 3 Nathan Niesen CLA 2011-03-25 10:48:03 EDT
I think most people would be happy if the Search dialog allowed you to exclude version control "ignored" files in addition to derived resources. The biggest issue seems to be searches returning results for derived folders that lost their setting. These folders are mostly marked as ignored for version control.
Comment 4 Nathan Niesen CLA 2011-03-25 11:04:27 EDT
(In reply to comment #3)
> I think most people would be happy if the Search dialog allowed you to exclude
> version control "ignored" files in addition to derived resources. The biggest
> issue seems to be searches returning results for derived folders that lost
> their setting. These folders are mostly marked as ignored for version control.

Enhancement request to exclude ignored resources from searches:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=340969
Comment 5 Nathan Niesen CLA 2011-03-25 11:16:16 EDT
Maybe anything with an "ignored" version control property could automatically be flagged by eclipse as "derived".
Comment 6 Matthias Kurz CLA 2018-02-22 11:21:04 EST
Wow, almost 12 years now that bug hasn't been fixed...
Comment 7 Andreas Fischl CLA 2018-11-06 09:21:03 EST
I mentioned two workarounds for this here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150578#c41