Community
Participate
Working Groups
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.
Good find. Indeed we implicitly consider 'config/**' as '**/config/**'. As a workaround, you could specify the exclusion filter '/config/**' (or just '/config/') instead.
*** Bug 29803 has been marked as a duplicate of this bug. ***
Fixed in latest.
Verified.