Bug 29964 - Add inclusion filter
Summary: Add inclusion filter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 30654 33408 40909 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-22 08:17 EST by Adalbert Homa CLA
Modified: 2004-05-18 10:09 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adalbert Homa CLA 2003-01-22 08:17:05 EST
M4 introduced the ability to exclude Java code. But this is to restrictive. A
combination of inclusion and exclusion filter will be more usefull.
Example:
  include *.java
  exclude Test*.java

By default there is: include *

Or as an alternate solution an exclusion filter can be negated like this:
  exlude !Test*.java
Comment 1 Philipe Mulet CLA 2003-01-28 09:39:20 EST
Unlikely for 2.1, but will reconsider for 2.2. Agree this is a fair request.
Comment 2 Philipe Mulet CLA 2003-01-30 16:49:42 EST
*** Bug 30654 has been marked as a duplicate of this bug. ***
Comment 3 Krishna Ganti CLA 2003-01-30 17:38:10 EST
Requesting to make it available in earlier builds of 2.2 rather than later
Comment 4 Philipe Mulet CLA 2003-03-01 05:16:30 EST
*** Bug 33408 has been marked as a duplicate of this bug. ***
Comment 5 Philipe Mulet CLA 2004-02-13 07:57:19 EST
Problem is that if we allow inclusion filters, we need to dig inside excluded 
resource trees as a subtree could be included again.

The current implementation doesn't recurse in excluded subtrees.
Comment 6 Jerome Lanneluc CLA 2004-02-23 06:37:36 EST
Reconsidering...
Comment 7 Philipe Mulet CLA 2004-03-25 06:30:50 EST
*** Bug 40909 has been marked as a duplicate of this bug. ***
Comment 8 Jerome Lanneluc CLA 2004-04-02 05:18:18 EST
Added inclusion patterns support. See JavaCore.newSourceEntry(IPath,IPath
[],IPath[],IPath) and IClasspathEntry.getInclusionPatterns() for details.

Added tests InclusionPatternTests.
Comment 9 Jerome Lanneluc CLA 2004-04-02 05:20:53 EST
A UI is still needed. See bug 57204.
Comment 10 Frederic Fusier CLA 2004-05-18 10:09:32 EDT
Verified for 3.0 with build I200405180816.