Bug 14172

Summary: Builder is setting source resources as derived!
Product: [Eclipse Project] JDT Reporter: Randy Giffen <Randy_Giffen>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: James_Moody, Kevin_McGuire
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Randy Giffen CLA 2002-04-18 17:13:31 EDT
I20020416 == M5
This is critical.
IncrementalProjectBuilder.findSourceFiles() for added files is calling 
setDerived(true) on the *source* file, not the *destination* file. The result 
is that new resource files in source directories are being marked as derived 
and excluded from team operations. The files in the bin/ folder, conversely, 
are not being marked as derived.
Comment 1 Philipe Mulet CLA 2002-04-19 04:56:34 EDT
The entire resource copy process is tagging the wrong resource file (original) 
instead of target one.

Fixed occurrences of wrong logic in:

copyExtraResourcesBack()
  - org.eclipse.jdt.internal.core.builder.BatchImageBuilder
findSourceFiles(IResourceDelta, int)
  - org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder (2 matches)