-
-
Notifications
You must be signed in to change notification settings - Fork 60
Developer:Setup
- JDK, version 8+
- Eclipse Luna or newer
-
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.
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 clickFinish
.
- In Eclipse / Package Explorer click the
Platform_Core
project and ensure it is selected. - In the Run menu, choose
Run
orDebug
, and choosegngrDev
as the launch configuration.
The file://
protocol is disabled in gngr
as of now, for security reasons. To load an html
file from your local system, you can start a server locally, and access through http
.
A simple server can be quickly started with this command: python -m SimpleHTTPServer
. It serves files from the current directory. A better performing server can be started with the help of this script.
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.
- Go to
Window > Preferences > Java > Code Style > Formatter
and clickImport...
- Select the file
misc/EclipseJavaFormat_Spaced.xml
from the repository.