Skip to content
hrj edited this page Feb 19, 2015 · 7 revisions

Pre-requisites

  • JDK, version 8+
  • Eclipse Luna or newer

Building

  • git clone the repo
  • In Eclipse, import the projects into your workspace. You need to navigate to the src/ folder in the cloned repository and import all projects recursively.
  • There should be no compilation errors at this stage.

How to Run or Debug gngr in Eclipse

Importing the Launch Configuration

This needs to be done only once.

  • In Eclipse File menu, select Import -> Run/Debug -> Launch Configuration
  • Pick the gngr/misc/ folder (from the cloned repo)
  • Pick the gngrDev launch configuration and click Finish.

Launching

  • In Eclipse / Package Explorer click the Platform_Core project and ensure it is selected.
  • In the Run menu, choose Run or Debug, and choose gngr as the launch configuration.

Coding

We need to follow a consistent coding style and format so that the code is readable to everyone and there are fewer differences between commits.

Eclipse has an auto-formatting feature (Menu: Source/Format) but we first need to configure it. The settings used by us are exported to a file in the repo, and you need to import them into your Eclipse.

How to import the Code Formatter settings

  • Go to Window > Preferences > Java > Code Style > Formatter and click Import...
  • Select the file misc/EclipseJavaFormat_Spaced.xml from the repository.

Clone this wiki locally