Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build Command
Build Command [message #46223] Tue, 22 October 2002 10:05 Go to next message
Eclipse UserFriend
Originally posted by: csheen.iii.org.tw

hi...
I want to new a C project by my button in toolbar. I write
..project as same as C project.
ex.
<buildCommand>
<name>org.eclipse.cdt.core.cbuilder</name>
<arguments>
</arguments>
</buildCommand>

But i can't set Build Command to "make -f makefile". How can i set
it?
I don't want user to set it by himself.It's default value is "Use
Default".

I just know that if i don't read
<nature>org.eclipse.cdt.core.cnature</nature> in .project.
"C/C++ project" setting will not appear in the properties of my
project.
Re: Build Command [message #46495 is a reply to message #46223] Wed, 23 October 2002 06:23 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Hi!

May be I didn't quite fully understand your problem but try to do
following:

Open org.eclipse.cdt.core/plugin.xml and find there following strings

<extension
point="org.eclipse.cdt.core.CBuildCommand">
<buildcommand
command="make">
</buildcommand>
</extension>

Change value of variable 'command' and new value will appear in Eclipse
as a default value instead of make.



Hope it helps,
Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru



Chiang Shen wrote:

> hi...
> I want to new a C project by my button in toolbar. I write
> ..project as same as C project.
> ex.
> <buildCommand>
> <name>org.eclipse.cdt.core.cbuilder</name>
> <arguments>
> </arguments>
> </buildCommand>

> But i can't set Build Command to "make -f makefile". How can i set
> it?
> I don't want user to set it by himself.It's default value is "Use
> Default".

> I just know that if i don't read
> <nature>org.eclipse.cdt.core.cnature</nature> in .project.
> "C/C++ project" setting will not appear in the properties of my
> project.
Re: Build Command [message #46522 is a reply to message #46495] Wed, 23 October 2002 08:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csheen.iii.org.tw

Sorry...My English is poor.

Thx Zamyatin's help.

I try to change value of variable 'command'.

First, value of variable 'command' is 'make".
When i rebuild my project,i see the result in C-Build. The command is
"make -k"

Second, i change value of variable 'command' to 'make -f makefile".

When i rebuild my project,i see the result in C-Build. The command is
"make -f makefile -k"

How to make '-k' disappear?

>"Igor S. Zamyatin" <isz@interstron.ru>
> Hi!
>
> May be I didn't quite fully understand your problem but try to do
>following:
>
> Open org.eclipse.cdt.core/plugin.xml and find there following strings
>
> <extension
> point="org.eclipse.cdt.core.CBuildCommand">
> <buildcommand
> command="make">
> </buildcommand>
> </extension>
>
> Change value of variable 'command' and new value will appear in Eclipse
>as a default value instead of make.
Re: Build Command [message #46550 is a reply to message #46522] Wed, 23 October 2002 10:24 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Take a look at org.eclipse.cdt.internal.core.CBuilder.

There is function parseArguments and there you can find following strings

if (nature.isDefaultBuildCmd()) {
if(!nature.isStopOnError()) {
list.add("-k");

Here '-k' adds. Comment it or change it and that's all



Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru



Chiang Shen wrote:


> Sorry...My English is poor.

> Thx Zamyatin's help.

> I try to change value of variable 'command'.

> First, value of variable 'command' is 'make".
> When i rebuild my project,i see the result in C-Build. The command is
> "make -k"

> Second, i change value of variable 'command' to 'make -f makefile".

> When i rebuild my project,i see the result in C-Build. The command is
> "make -f makefile -k"

> How to make '-k' disappear?

> >"Igor S. Zamyatin" <isz@interstron.ru>
> > Hi!
> >
> > May be I didn't quite fully understand your problem but try to do
> >following:
> >
> > Open org.eclipse.cdt.core/plugin.xml and find there following strings
> >
> > <extension
> > point="org.eclipse.cdt.core.CBuildCommand">
> > <buildcommand
> > command="make">
> > </buildcommand>
> > </extension>
> >
> > Change value of variable 'command' and new value will appear in Eclipse
> >as a default value instead of make.
Re: Build Command [message #46976 is a reply to message #46550] Thu, 24 October 2002 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csheen.iii.org.tw

Thx....

I know.It means that i need to edit source code of CDT.

But i don't want to do it. Because if i do it,i can't release my
plug-in to others.

My plug-in can create a project base on C project.

When it is be created,I will put some special files in this project.

The user can use my project to design some programs.

How to make "-k" disapear if i don't edit CDT's source code?

And i don't know why it adds "-k" in this function.

Because "-k" is not a parameter of make.I can't find any make.exe
that has parameter "-k".



>"Igor S. Zamyatin" <isz@interstron.ru>
>
> Take a look at org.eclipse.cdt.internal.core.CBuilder.
>
> There is function parseArguments and there you can find following strings
>
> if (nature.isDefaultBuildCmd()) {
> if(!nature.isStopOnError()) {
> list.add("-k");
>
> Here '-k' adds. Comment it or change it and that's all
>
>
>
>Igor S. Zamyatin
> Interstron Ltd.
>----------------------------------------
>email: isz@interstron.ru
>tel: +7 (095) 269-4713
>cell: +7 (902) 659-5838
>www: http://www.interstron.ru
Re: Build Command [message #47004 is a reply to message #46976] Thu, 24 October 2002 09:51 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
As I understood option "-k" adds if user chooses "Keep going on error"
option in project's properties dialog. If he chooses "Stop on error" no
option is adding.

Igor S. Zamyatin




> Thx....

> I know.It means that i need to edit source code of CDT.

> But i don't want to do it. Because if i do it,i can't release my
> plug-in to others.

> My plug-in can create a project base on C project.

> When it is be created,I will put some special files in this project.

> The user can use my project to design some programs.

> How to make "-k" disapear if i don't edit CDT's source code?

> And i don't know why it adds "-k" in this function.

> Because "-k" is not a parameter of make.I can't find any make.exe
> that has parameter "-k".



> >"Igor S. Zamyatin" <isz@interstron.ru>
> >
> > Take a look at org.eclipse.cdt.internal.core.CBuilder.
> >
> > There is function parseArguments and there you can find following strings
> >
> > if (nature.isDefaultBuildCmd()) {
> > if(!nature.isStopOnError()) {
> > list.add("-k");
> >
> > Here '-k' adds. Comment it or change it and that's all
> >
> >
> >
> >Igor S. Zamyatin
> > Interstron Ltd.
> >----------------------------------------
> >email: isz@interstron.ru
> >tel: +7 (095) 269-4713
> >cell: +7 (902) 659-5838
> >www: http://www.interstron.ru
Re: Build Command [message #48408 is a reply to message #47004] Fri, 01 November 2002 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csheen.iii.org.tw

I just new a c project,it's default value is "make".
But it's default build command is "make -k".
I just want the command is "make" not "make -k".
How to do it??

>"Igor S. Zamyatin" <isz@interstron.ru> >
> As I understood option "-k" adds if user chooses "Keep going on error"
>option in project's properties dialog. If he chooses "Stop on error" no
>option is adding.
>
> Igor S. Zamyatin
Re: Build Command [message #48593 is a reply to message #48408] Sun, 03 November 2002 01:54 Go to previous message
Judy N. Green is currently offline Judy N. GreenFriend
Messages: 149
Registered: July 2009
Senior Member
Hi Chiang,

Currently make -k is our default and it cannot be changed (unless there has
been a change in the code in the last week) Thins move fast around here.
We have had several people request a change in this and we are looking into
it.

-Judy

"Chiang Shen" <csheen@iii.org.tw> wrote in message
news:apsr72$b9a$1@rogue.oti.com...
> I just new a c project,it's default value is "make".
> But it's default build command is "make -k".
> I just want the command is "make" not "make -k".
> How to do it??
>
> >"Igor S. Zamyatin" <isz@interstron.ru> >
> > As I understood option "-k" adds if user chooses "Keep going on error"
> >option in project's properties dialog. If he chooses "Stop on error" no
> >option is adding.
> >
> > Igor S. Zamyatin
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/02
Previous Topic:How to find if a project is a C/C++ project
Next Topic:Feature request - build on save
Goto Forum:
  


Current Time: Thu Dec 26 15:33:28 GMT 2024

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

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

Back to the top