Build Command [message #46223] |
Tue, 22 October 2002 10:05 |
Eclipse User |
|
|
|
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 #46522 is a reply to message #46495] |
Wed, 23 October 2002 08:50 |
Eclipse User |
|
|
|
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 #46976 is a reply to message #46550] |
Thu, 24 October 2002 09:49 |
Eclipse User |
|
|
|
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 #48408 is a reply to message #47004] |
Fri, 01 November 2002 03:39 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04180 seconds