The source code is available through the GitHub platform at the URL http://github.com/nuvolabase/orientdb.
Since the build process will put the generated file in a directory called release
, which will be a sibling of the source
directory, I suggest you create a directory just for OrientDB. Inside that directory create a new directory to place the downloaded source code.
You can download the latest source code by selecting the master branch and downloading the master.zip
file using the ZIP button.
Otherwise, you can clone the GIT repository on your machine using git
. Type:
git clone git://github.com/nuvolabase/orientdb.git
To build OrientDB from source code you must have a JDK SE 6 or above, and the Ant Tool version 1.6.5 or above.
You can download Ant from http://ant.apache.org/.
Please note that the ant
executable directory must be included in the PATH
environment variable.
Once you have downloaded the source code and installed the necessary tool, you can proceed to build OrientDB.
Go into the source code directory and type:
ant clean install
You can also launch the build.bat
(or build.sh
in Unix-like system), however these scripts call ant
.
To build the Graphed Edition too, type:
ant clean installg
At the end of the build process you should have a screen shown as follows:
The generated files are in the release\orientdb-x.y.z-SNAPSHOT
and release\orientdb-graphed-x.y.z-SNAPSHOT
directories, where x.y.z
is the current version under development.
To run the test suite against a freshly-built OrientDB snapshot, you can type the following command:
ant test
After the test suite has finished (you should have 0 errors), in the database directory of the Standard Edition, you should have some databases created to run the tests, including the demo database.
There are another set of tests that need of Maven to be executed.
So, if you want to execute these tests you must download Maven from http://maven.apache.org/download.cgi
and install it following the instruction provided in the readme.txt
file within the installation package.
Once you have Maven on your system, you can type:
mvn clean test