Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331451

Summary: How to enter a directory path in the Project's Resource > Resource Filter
Product: [Eclipse Project] Platform Reporter: Ronan Mulvaney <rmulvaney>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: serge
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ronan Mulvaney CLA 2010-11-30 11:32:23 EST
Build Identifier: I20100608-0911

I am trying to take advantage of your Resource Filters to narrow down the working set of our project.

In this I am able to add inclusions for root level directories e.g. source, build, etc however I cannot figure out a valid entry for including or excluding a sub-level directory from a "Project Relative Path" e.g. the inclusion of build\svr\cls - as it exists in my classpath.
We through a command line process output a lot of content into a build directory and therefore in Eclipse I'd prefer to only include here what is relative to Eclipse i.e. the build\svr\cls directory.
Any help here would be appreciated as to whether this is supported and what the pattern should be for this.

Reproducible: Always
Comment 1 Serge Beauchamp CLA 2010-11-30 11:44:53 EST
Hi, 

Can you be more specific about the hierarchy structure of your workspace, and the virtual hierarchy that you want to create?

Generally speaking, if you have the following workspace:

wksp/
    proj/  
       subdir/
             to_exclude/
                       foo.txt

And you'd like to end up with the following hierarchy:

wksp/
    proj/  
       subdir/

You can either create an exclude filter on 'subdir' directly for folders matching 'to_exclude', or you can create the following filder on 'proj':

     Exclude all: Project Relative Path matches 'subdir/*' (recursive)

Which will accomplish the same thing.
Comment 2 Ronan Mulvaney CLA 2010-11-30 11:52:24 EST
You directed me at my problem i.e. I wasn't aware that you could add these to any resource under a project and what I was trying to do was to exclude all from the project level.
Thanks.