Bug 29621 - Wrong Delta When Adding to Filtered Folder
Summary: Wrong Delta When Adding to Filtered Folder
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-16 08:17 EST by Dani Megert CLA
Modified: 2003-02-06 11:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.