-
Notifications
You must be signed in to change notification settings - Fork 2
Building From Source
If you don't have it already, obtain the Eclipse IDE and install it.
The bonus when using Eclipse compared to other IDEs is that we host working Eclipse-projects in our repositories. With other IDEs you will have to set up your own project.
-
Install the EGit plugin to Eclipse. This is an official plugin for the latest Eclipse:
- Go to
Help
/Install New Software
- Select
All Available Sites
in theWork with
dropdown. - Type
EGit
in the filter box. - Chose
EGit
from the search results and install it (and its dependencies).
- Go to
-
In Eclipse select
File
/Import
to import the Freenet project - Web Of Trust needs some of it to compile:- In the
Select
dialog choseGit
/Projects from Git
, click Next - In the
Select a git repository
dialog clickClone
- In the
Source Git repository
screen enter the following into URI:git://github.com/freenet/fred.git
- Click Next.
- In the
Branch selection
screen chose the branches which you want. Master branch is usually the only which you need, it is the main development branch. Click Next. -
Local destination
screen: Selectmaster
as the initial branch. Click Finish to import the Freenet project. This might take some time as the source code of Freenet is rather large. Have a coffee now. - Now you will be back to the
Import projects from Git
wizard where you had pressed clone. - Select
fred
if there are multiple projects in the list - Click Next
- In the
Select a wizard to use for importing projects
selectImport existing projects
if it is not selected already - Click Next
- In the
Import projects
screen select thefred
project. Click Finish - Now the
fred
project should be important and compile fine already.
- In the
To get the latest source from Github, build the Freenet jar:
git clone git://github.com/freenet/fred.git
cd fred
./gradlew jar
To get the latest version of the source use
git pull
We provide a script to verify that the official jar corresponds to the official source code, "verify-build" in the Maintenance scripts repository. It takes a bit of setting up, so see here for details:
https://github.com/freenet/scripts/blob/master/README.md#verifying-fred-builds