Bug 29761

Summary: Regular expression pattern in exclusion filter is too greedy in M4
Product: [Eclipse Project] JDT Reporter: Alex <apetrushko>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.wathen
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.