Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:01:48+00:00 2026-06-18T08:01:48+00:00

In eclipse CDT 4.2 i want to include only few folders as resource. eg

  • 0

In eclipse CDT 4.2 i want to include only few folders as resource.
eg “/root” is the place where project “myproject” is created. I want to include only these folders and exclude any others.

  • /root/A
  • /root/B
  • /root/C/D

I am aware that this can be done in

   Project -> Resource -> Resource Filters

But the UI there is confusing me.

  • What is the difference between Location and Relative path.
  • The check box “Apply recursively” is also confusing me a bit.
  • There is a way to specify regular expression but if I put a regex starting with *, like */root/A/* or */myproject/A/* it will give error saying “Dangling meta character near index 0”.

In short because of these seemingly confusing options (to me) I am not yet able to acheive above. Please clarify

PS : The way source lies in linux my file system and proprietary source control system they all are links. Not sure if this matters , but just mentioning.

eg
root/A/file.c –> [link to version control system for file.c]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:01:49+00:00Added an answer on June 18, 2026 at 8:01 am
    • What is the difference between Location and Relative path.

    The Location is the full path (e.g. /home/user123/workspcae/proj1/src/foo.c), where relative path is only the part within the project directory (e.g. src/foo.c)

    • The check box “Apply recursively” is also confusing me a bit.

    Means the rule is not only used for the projet-root, but also for any sub-directory. I.e. a rule to match src/*.c won’t do anything without “Apply recursivly”, because it only matches files in the sub-directory src

    • There is a way to specify regular expression but if I put a regex starting with *, like /root/A/ or /myproject/A/ it will give error saying “Dangling meta character near index 0”.

    You are using wildcards, not regular expressions. regex are much more complex, and stars mean the previous ‘object’ may occur zero or more times. Without this previous object Eclipse gets confused. Just don’t check the regex-box and it should work as you expected, or add a dot before the star, meaning any character.

    To Solve your Problem do:

    Project -> Properties -> Resource -> Resource Filters

    • Include only:
      • Folder: (name match) a
      • Folder: (name match) b
      • Folder: (name match) c
    • Exclude all:
      • Files: (name match) *

    Folder c -> Properties -> Resource -> Resource Filters

    • Include only:
      • Folder: (name match) d
    • Exclude all:
      • Files: (name match) *
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Eclipse CDT for a C project with custom makefiles, and I want
I am working with Eclipse CDT and I want to build the current project
I just recently(actually today) started using Eclipse CDT for windows. Created a project, a
I found it very difficult to configure linked resource in Eclipse CDT. Folder wspolne
I'm setting up a C++ project, on Ubuntu x64, using Eclipse-CDT. I'm basically doing
I'm new to Eclipse-CDT, setting up a new project for the first time. I'm
I am using Eclipse CDT with Cygwin GCC 3 as compiler. My project is
I'm writing a C program using Eclipse CDT. I want to init my for
In Eclipse CDT, I have several build configurations. I want to build them all
I am new to C++ and Eclipse (with CDT plugin) and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.