Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to get build configuration of project
how to get build configuration of project [message #179915] Thu, 16 November 2006 10:02 Go to next message
parag is currently offline parag
Messages: 83
Registered: July 2009
Member
hi all,
How do I get the Active build configuration of project (i.e. Debug or
Release), I have tried with

"
(ManagedBuildManager.getBuildInfo(fileHandle.getProject())). getManagedProject().getConfigurations();
"

but it gives me both configurations (i.e. Debug & Release) not the active
(applied) one.

please suggest something to get Active build configuration of project.

Thanks in advance
parag
Re: how to get build configuration of project [message #179922 is a reply to message #179915] Thu, 16 November 2006 10:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: dmsubs.NOSPAM.consertum.com

I do it this way:
IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(project);
if (info == null)
return;
IConfiguration cfg = info.getDefaultConfiguration();

--
Derek


parag wrote:
> hi all,
> How do I get the Active build configuration of project (i.e. Debug or
> Release), I have tried with
> "
> (ManagedBuildManager.getBuildInfo(fileHandle.getProject())). getManagedProject().getConfigurations();
> "
>
> but it gives me both configurations (i.e. Debug & Release) not the
> active (applied) one.
>
> please suggest something to get Active build configuration of project.
>
> Thanks in advance
> parag
>
>
Re: how to get build configuration of project [message #765974 is a reply to message #179922] Thu, 15 December 2011 02:28 Go to previous message
lin  is currently offline lin
Messages: 2
Registered: August 2011
Junior Member
Thank you very much.
Previous Topic:I don't manage to set a debug configuration
Next Topic:Expression parsing and evaluation in cdt
Goto Forum:
  


Current Time: Thu Oct 02 02:40:44 GMT 2014

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

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