| layout | title |
|---|---|
default |
Developing Anathema with Eclipse |
JDK 6 (Note that there is a 32 and 64 bit version too, you can download and install both if you so wish).
It is possible to use JDK 7 but using it can easily introduce unwanted dependency on it so be wary.
- Create an account on https://github.com and log in.
- Go to (while logged in) https://github.com/anathema/anathema and fork the project by clicking the "fork" button.
- Now, on the "code" page of your account, you should see your forked project.
- You should there see some options to download the files of the project: "ZIP", "SSH", "HTTP", "Git Read-only".
- Here select "HTTP" and be prepared to copy the provided link to your clipboard later.
- Download Eclipse (IDE for Java developers, 32 or 64 bit version whichever JDK you have): http://www.eclipse.org/downloads
- Extract Eclipse wherever you like to.
- Start Eclipse and choose a directory for the for the workspace when requested to do so.
- Open Windows/Open Perspective/Other and choose "Git Repository Exploring". (don't bother yourself with the pop-up dialog about the HOME directory, just click ok)
- Copy the HTTP link of your forked project on github to the clipboard.
- Right click into the "Git Repositories" window and select "Paste Repository Path or URI".
- The popping window should contain all the information filled except for your password (so enter it). (check your firewall in case of failure)
- On the next screen you should see the possible branches which you can clone to your local disk.
- "master" is the main branch, so select it and unselect the other branches.
- On the next screen you need to specify the directory where you want to download Anathema (preferably an empty directory).
- Click finish and wait for Anathema to be downloaded.
- Once Anathema was downloaded you should see a new node (starting with "master" if you have not specified otherwise) in the "Git Repositories" window.
- Open a terminal window in the Anathema directory and run
gradlew eclipseProject eclipseClasspath eclipseJdt. - Right click on this node and select "Import projects...".
- On the appearing window select "Import Existing Projects" and click next.
- On the next screen select all the projects in the list and leave "Add project to working sets" unchecked.
- Once the projects are imported, at Windows/Open Perspective/Other choose "Java".
- In the menu click Run/Run and if asked choose "Anathema" and Anathema should start.
- In the menu select Windows/Preferences.
- In the appearing window select Java/Code Style/Formatter.
- Click "Import" and select the file
[Repository]/Development_Miscellaneous/Eclipse/preferences/anathema.formatter.xml. - Apply.
- After you have modified a project right click on the project (in the Package Explorer window) and in the "Team" menu select "Commit..."
- Enter a description of the changes you have made in the Commit message.
- Review the files and select only those you really want to commit.
- Once done, right click on the project again and in the "Team" menu select "Push to Upstream".
- Now at github you can simply click "Pull Request" on your project and wait until the changes are merged into the main repository.