someone pls relpy back... if this can be done or not??? [message #75647] |
Tue, 15 July 2003 02:14  |
Eclipse User |
|
|
|
Originally posted by: shilpagu.noida.hcltech.com
i m new to CDT.
i need to create a C project and add to its build spec, a builder of my
own in addition to the default C builder.
now since no cdt help is available, i dont know anything bout CDT API. how
do i move on?
like as in case of Java, we can simply create an instance of type
IJavaProject and add to its build spec our builders and so on and move.
can something similar be done in case of C also?
some source code is available on the cdt home page but could someone just
give me a direction in which to move.
|
|
|
|
Re: someone pls relpy back... if this can be done or not??? [message #76570 is a reply to message #75647] |
Wed, 23 July 2003 08:48  |
Eclipse User |
|
|
|
"Shilpa" <shilpagu@noida.hcltech.com> wrote in message
news:bf064t$ovg$1@eclipse.org...
> i m new to CDT.
> i need to create a C project and add to its build spec, a builder of my
> own in addition to the default C builder.
> now since no cdt help is available, i dont know anything bout CDT API. how
> do i move on?
> like as in case of Java, we can simply create an instance of type
> IJavaProject and add to its build spec our builders and so on and move.
> can something similar be done in case of C also?
> some source code is available on the cdt home page but could someone just
> give me a direction in which to move.
Two options ... you can change the default build comand to invoke whatever
you want before/after you invoke make so this gives you complete control.
For example in the project properties you can change the build command to
(under Unix in any case) spawn a shell script:
#!/bin/sh
echo "I echo before the command"
make $0
echo "I echo after the command"
If you want to do it programatically, then you can add yourself as a builder
on
to the project using the standard Eclipse API's.
Hope this helps,
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.03357 seconds