[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Modifying the build command in CDT
|
Hi Oge,
Here is an example of how the build command could be accessed/changed
given a specified project:
IProject project = ... the project you need
ImanagedBuildInfo info = ManagedBuildManager.getBuildInfo(project);
IManagedProject mProj = info.getManagedProject();
IConfiguration cfg = ..obtain the configuration using one of the
mProj.getConfiguration*() methods;
Ibuilder builder = cfg.getEditableBuilder();
//Use the builder.get/setCommand() and builder.get/setArguments() for
assessing/changing the build command and build arguments respectively.
In case the builder settings are modified you need to apply them using
the
ManagedBuildManager.saveBuildInfo(project, info);
Regards,
Mikhail
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Ogechi Nnadi
Sent: Thursday, August 02, 2007 8:53 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Modifying the build command in CDT
> What CDT version are you using?
I'm using, and developing for, CDT v. 4.0.0.200706261300.
Oge.
On 8/2/07, Sennikovsky, Mikhail <mikhail.sennikovsky@xxxxxxxxx> wrote:
> Hi Oge,
>
> What CDT version are you using?
>
> Mikhail
>
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On Behalf Of Ogechi Nnadi
> Sent: Thursday, August 02, 2007 8:10 PM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Modifying the build command in CDT
>
> Hi,
>
> I am working on an Eclipse plug-in that heuristically finds all
> installations of Make on a system and adds them to the CDT's
> preferences, perhaps to the "Build Command" textbox in the "C/C++
> Build" preference page. What class contains the contents of the "Build
> Command" textbox? Is there an API for modifying that value?
>
> Thanks,
>
> Oge.
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev