Current location - Quotes Website - Personality signature - How to configure a builder for a project in eclipse
How to configure a builder for a project in eclipse
Configure the builder method steps for the project in eclipse.

Builder is the builder of the project, through which the incremental construction and complete construction of the project can be realized. Add the builder extension point to the plug-in as shown below.

1. Add the "org.eclipse.core.resources.builders" extension point to the extension page of the plug-in manifest file, and set the ID attribute to "helloworldbuilder" and the name attribute to "hello world, bulder".

2. Add a builder child node under "org". Eclipse. core.resources.builders "node.

3. add a run node under the builder node and set the implementation class to "com.free.project.helloworldbuilder".

The extension point is described in the plugin.xml file as follows.

& lt extension

id = " hello world builder " name = " hello world,bulder "

point = " org . eclipse . core . resources . builders " & gt;

& lt generator & gt

& ltrun class = " com . free . project . hello world builder "/& gt;

& lt/builder & gt;

& lt/extension & gt;

The implementation class of the builder extension point inherits from the "IncrementalProjectBuilder" class and implements two resource listeners. This build is called when the resources in the project change. In this example, only the corresponding data is printed, but the build operation is not implemented. When users need to build, they can replace the corresponding code, such as compiling files.