Bug 29621

Summary: Wrong Delta When Adding to Filtered Folder
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2003-01-16 08:17:21 EST
Build I20030115

1. Start fresh workspace
2. Add J project "Test"
3. Add source folder "src"
4. Add folder "icons" to "src"
5. Ensure only "src" is on the build path and exclude folder "icons"
6. Add file "my.txt" to "icons" folder
==> the delta which is sent out looks like:
Java Model[*]: {CHILDREN}
	Test[*]: {CHILDREN}
		src/icons/my.txt[+]: {}

There should be a resource delta.
Comment 1 Philipe Mulet CLA 2003-01-16 08:48:29 EST
You should be excluding "icons/" (note trailing slash).
Is it the case ? If not, strictly speaking the contents of the folder isn't 
excluded (only the folder) as per Ant fileset rules.
Comment 2 Dani Megert CLA 2003-01-16 08:53:34 EST
It's:    <classpathentry excluding="icons/" kind="src" path="src"/>

And even if I had "icons" I should get a resource delta, shouldn't I
Comment 3 Jerome Lanneluc CLA 2003-01-16 11:30:15 EST
Element type was wrongly computed as a package fragment root. It was checking 
that the root info's project contained the project, but it was not checking 
that the path was exactly the root info's path.

Fixed and added regression test ExclusionTests.testAddToExcludedFolder()
Comment 4 David Audel CLA 2003-02-06 11:00:30 EST
Verified.