Bug 62608 - Include pattern ending with slash should include all subtree
Summary: Include pattern ending with slash should include all subtree
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 04:44 EDT by Jerome Lanneluc CLA
Modified: 2004-05-18 18:25 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 Jerome Lanneluc CLA 2004-05-18 04:44:44 EDT
I20040517

1. Create Java project P with source folder src
2. Create package a.b.c in P/src
3. Add inclusion filter for P/src: 'a/'
Observe: 'a.b.c' is removed and replaced with 'a'.

4. Change inclusion filter to 'a/**'
Observe: 'a.b.c' appears again
Comment 1 Jerome Lanneluc CLA 2004-05-18 04:48:16 EDT
Note this 'shorthand' is described in 
http://ant.apache.org/manual/dirtasks.html.
Comment 2 Jerome Lanneluc CLA 2004-05-18 07:51:17 EDT
Fixed Util.isExcluded(IPath, char[][], char[][], boolean) to consider that a 
trailing slash is equivalent to '/**'.

Added regression test InclusionPatternTests.testTrailingSlash().
Comment 3 Olivier Thomann CLA 2004-05-18 18:25:27 EDT
Verified in 200405180816