Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Excluding Folders in a Managed Make C/C++ Project
Excluding Folders in a Managed Make C/C++ Project [message #158653] Mon, 21 November 2005 23:20 Go to next message
Eclipse UserFriend
Originally posted by: ben_ej.yahoo.com

I am REALLY beating my head against the wall here - I've seen several
posts about excluding folders in CDT, but it always ends with "I know this
works in Java and Standard Make C/C++ projects, but I'm not sure about
C/C++ Managed Make." Well I cannot for the life of me find this ability
within a Managed Make C/C++ project. And what I really cannot understand
is why you would even need this capability in a STANDARD make project
where I have to manage the makefile by myself anyway! Where I need an
exclusion filter is in a project managing the makefile for me! Help
please.
Re: Excluding Folders in a Managed Make C/C++ Project [message #158661 is a reply to message #158653] Mon, 21 November 2005 23:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

I for one don't know if it works in Managed projects just because I
don't use managed projects and therefore have never tried.

However, the way to try is to go to
Project->Properties->C/C++ Project Paths
and under the Source tab there should be one or more folders identified
as "Source folders on Build Path". Under each folder is an "Exclusion
Filter".

If there are no source folders identified, create one. If you cannot,
or when you do, there is no "Exclusion filter", you may be SOL.

If it exists, simply select the filter, and click edit. From there you
can add individual or multiple files including file patterns. Once
created, you can also edit the filter by hand in the .cdtprojects file,
but BE CAREFUL!!!


The reason one would exclude files from a standard make project is so
that the indexer will only index files not excluded. As a side effect,
it moves all excluded files to the bottom of the folder in the navigator.

GL

David




Ben wrote:
> I am REALLY beating my head against the wall here - I've seen several
> posts about excluding folders in CDT, but it always ends with "I know
> this works in Java and Standard Make C/C++ projects, but I'm not sure
> about C/C++ Managed Make." Well I cannot for the life of me find this
> ability within a Managed Make C/C++ project. And what I really cannot
> understand is why you would even need this capability in a STANDARD make
> project where I have to manage the makefile by myself anyway! Where I
> need an exclusion filter is in a project managing the makefile for me!
> Help please.
>
Re: Excluding Folders in a Managed Make C/C++ Project [message #158723 is a reply to message #158661] Tue, 22 November 2005 13:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ben_ej.yahoo.com

Thanks for the reply - the reason I cannot find a way to add exclusion
filters in a managed project is that there is no "Project Paths" section
in a managed project properties dialog, so you're right - I'm probably
SOL. Its pretty baffling to me though - I would be interested to know why
the feature is not available in managed projects. It would be just as
useful.
Re: Excluding Folders in a Managed Make C/C++ Project [message #158775 is a reply to message #158723] Tue, 22 November 2005 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexfarberov.[nospam]hotmail.com

I agree, imo it would be VERY useful to have a directory exclude
directive for managed builds. Perhaps every build configuration could
have it's own exclude paths. Presently you can only do that for
individual files. (Right click on a file, properties, c++ build, exclude)

Ben wrote:
> Thanks for the reply - the reason I cannot find a way to add exclusion
> filters in a managed project is that there is no "Project Paths" section
> in a managed project properties dialog, so you're right - I'm probably
> SOL. Its pretty baffling to me though - I would be interested to know
> why the feature is not available in managed projects. It would be just
> as useful.
>
Re: Excluding Folders in a Managed Make C/C++ Project [message #160838 is a reply to message #158775] Wed, 21 December 2005 03:25 Go to previous message
Eclipse UserFriend
Originally posted by: crecoskie.ti.com

There is an ehancement request in Bugzilla to add exclusion of folders.
As it stands now this is not slated for any particular release.

The reason this currently is not a feature is because no one has had time
to work on it. We will happily accept patches if someone wishes to help
us out.

Cheers,

- Chris


Alex Farberov wrote:

> I agree, imo it would be VERY useful to have a directory exclude
> directive for managed builds. Perhaps every build configuration could
> have it's own exclude paths. Presently you can only do that for
> individual files. (Right click on a file, properties, c++ build, exclude)

> Ben wrote:
>> Thanks for the reply - the reason I cannot find a way to add exclusion
>> filters in a managed project is that there is no "Project Paths" section
>> in a managed project properties dialog, so you're right - I'm probably
>> SOL. Its pretty baffling to me though - I would be interested to know
>> why the feature is not available in managed projects. It would be just
>> as useful.
>>
Previous Topic:Build error with own toolchain
Next Topic:Error Parser
Goto Forum:
  


Current Time: Sat Nov 09 04:05:47 GMT 2024

Powered by FUDForum. Page generated in 0.03048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top