by Lars Vogel

Follow me on twitter

Lars Vogel on Google+

Eclipse Builder - Tutorial

Lars Vogel

Version 0.1

16.10.2009

Revision History
Revision 0.1 16.10.2009 Lars
Vogel
Created Article

Eclipse Builder

This article contains currently only a link to a tutorial for builder and natures. Please move on..

Currently in EARLY DRAFT.


Table of Contents

1. Eclipse Builder
2. Thank you
3. Questions and Discussion
4. Links and Literature
4.1. Source Code
4.2. Eclipse Builder
4.3. vogella Resources

1. Eclipse Builder

Eclipse supports the concept of natures and builders. For each project you can register a nature for which you can associate a certain builder. A builder is an object that manipulates your resources in your Eclipse IDE and creates other resources.

For example the "Java Builder" is used to translate Java Source files into .class files.

You can create your own builders by implementing the extension point "org.eclipse.core.resources.builders".

Each builder is subclassed from "IncrementalProjectBuilder" and must implement the method build().

In case autobuild is active then this method is called from the eclipse Framework if resources are changed. The method is also called if the user selects "Clean", "Build" or "Build All" from the menu.

Builder are included in the file ".project" in the buildCommands tag.

The method build() get a parameter if a full build (FULL_BUILD) or a delta build (INCREMENTAL_BUILD) has to be done. To get the changes in case of a delta build you can use the getDelta(getProject()) call which returns a "IResourceDelta".

For more information on builders please see the article in the appendix.

2. Thank you

Please help me to support this article:

Flattr this

3. Questions and Discussion

Before posting questions, please see the vogella FAQ. If you have questions or find an error in this article please use the www.vogella.de Google Group. I have created a short list how to create good questions which might also help you.

4. Links and Literature

4.1. Source Code

Source Code of Examples

4.2. Eclipse Builder

Eclipse Builder

4.3. vogella Resources

Eclipse RCP Training (German) Eclipse RCP Training with Lars Vogel

Android Tutorial Introduction to Android Programming

GWT Tutorial Program in Java and compile to JavaScript and HTML

Eclipse RCP Tutorial Create native applications in Java

JUnit Tutorial Test your application

Git Tutorial Put everything you have under distributed version control system