Specific Makefile Builder [message #200129] |
Wed, 22 August 2007 17:41  |
Eclipse User |
|
|
|
Hi all,
I want to write some specific Makefile builder. So what I have actually
done is to create a plugin which contains a
org.eclipse.core.resources.builders extension which I have namd myBuilder.
Then for the run option I have created a class MyMakeBuilder which
inherits from org.eclipse.cdt.make.core.MakeBuilder :
public class MyMakeBuilder extends MakeBuilder {
public final static String BUILDER_ID = Activator.PLUGIN_ID + ".myBuilder";
public TLMMakeBuilder() {
}
@Override
protected boolean invokeMake(int kind, IMakeBuilderInfo info,
IProgressMonitor monitor) {
System.out.println("This is my builder !!!");
return super.invokeMake(kind, info, monitor);
}
}
When I test my plugin, I create a new Standard make project then I
change the buildCommand from org.eclipse.cdt.make.core.makeBuilder to
xxx.myPlugin.myBuilder it deletes automatically this section.
Can you please explain me how to implement a new Standard make builder
that totally inherits from the one from the CDT and add some
functionality to it.
Thanks
|
|
|
Re: Specific Makefile Builder [message #200742 is a reply to message #200129] |
Wed, 29 August 2007 10:52  |
Eclipse User |
|
|
|
Hi all,
I finally succedded to write my own builder which inherits from
org.eclipse.cdt.make.core.MakeBuilder. But actually I have lost the access
to the preferences of the builder when I go to : Properties -> C/C++ Make
project
Nothing appears in the "Make Builder", "Environment" and "Error Parsers"
tabs. And I have the message "Builder is missing or disabled on project".
Should I have create a Nature for this builder that inherits from the Make
Nature or shoud I set my Builders nature to the CDT make nature.
|
|
|
Powered by
FUDForum. Page generated in 0.05369 seconds