Bug 29761 - Regular expression pattern in exclusion filter is too greedy in M4
Summary: Regular expression pattern in exclusion filter is too greedy in M4
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 29803 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-18 19:11 EST by Alex CLA
Modified: 2003-02-10 11:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex CLA 2003-01-18 19:11:38 EST
Scenario: project is used as a source folder. Project basedir is MyProject. 
Class Foo.java in package com.mycompany.config resides under 
MyProject/com/mycompany/config/Foo.java. There is also a config directory that 
hangs off MyProject with the XML deployment descriptor: MyProject/config/web.xml
I want to exclude all resources under MyProject/config from being copied into 
the output folder so I create 'config/**' exclusion filter for my source folder.
The filter excludes MyProject/config/web.xml but it also excludes 
MyProject/com/mycompany/config/Foo.java and the latter should not be excluded 
because the regular expression MyProject/config/** should not match 
MyProject/com/mycompany/config/Foo.java.
Comment 1 Philipe Mulet CLA 2003-01-20 08:51:23 EST
Good find. Indeed we implicitly consider 'config/**' as '**/config/**'.
As a workaround, you could specify the exclusion filter '/config/**' (or 
just '/config/') instead. 
Comment 2 Philipe Mulet CLA 2003-01-21 06:34:01 EST
*** Bug 29803 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2003-01-22 07:51:08 EST
Fixed in latest. 
Comment 4 David Audel CLA 2003-02-10 11:30:52 EST
Verified.