Bug 98421 - [model] Rename package re-includes excluded elements in the build path
Summary: [model] Rename package re-includes excluded elements in the build path
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-06-04 16:51 EDT by Henning Koch CLA
Modified: 2007-06-19 07:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Koch CLA 2005-06-04 16:51:14 EDT
Steps to reproduce:

- Exclude an element from your build path
- Rename the package of the excluded element
- The excluded element will be included in the build path again
Comment 1 Frederic Fusier CLA 2007-06-19 07:29:07 EDT
It looks like a normal behavior.

For example with following project:
P1
 + src
   + p1
     + q1
       + Test1.java
   + p2
     + q2
       + Test2.java

If I set an exclusion filter like p2/**, then p2/q2/Test2.java will be excluded from the build path.

Scenario 1), I rename the package 'p2' as 'p3'. The unit path 'p3/q2/Test2.java' will no longer match the exclusion filter and so, the unit will be put again on the project build path.

Scenario 2), I rename the package 'p2.q2' as 'p2.q3'. The unit path 'p2/q3/Test2.java' will still match the exclusion filter and so, the unit won't be put on the project build path...
Comment 2 Frederic Fusier CLA 2007-06-19 07:30:25 EDT
Close as WORKSFORME and target 3.3 RC4 as this was the build I used to make this verification...