Most OpenDA developers use IntelIJ as IDE (either on Linux, Windows or MacOS). IntelIJ can be downloaded here. However, you don't need to install IntelIJ for developing OpenDA. You may edit JAVA source code in any other editor and use Apache Ant as build tool.
Prerequisites:
- Git is installed, i.e. available on the commandline as
git - Ant is installed, i.e. available on the commandline as
ant.
git clone https://github.com/OpenDA-Association/OpenDA.git <work_dir>
cd <work_dir>
ant build
ant testType ant help for an overview of other build targets available in file build.xml.
Prerequisites:
- Git is installed
- IntelIJ is installed
- An OpenJDK is installed, we recommend this one.
Project settings for IntelIJ are stored in a project file (*.ipr).
File openda.ipr is found on the repository. For historical reasons,
this projectfile assumes that the source code of OpenDA is in a directory called public.
You can directly clone into directory public
git clone https://github.com/OpenDA-Association/OpenDA.git publicor rename your <working_directory> to public now.
Then start IntelIJ and open file ~\public\openda.ipr.
After opening the project for the first time you must set the project SDK. File -> Project Structure opens a new window. Under Project Settings on the left, choose Project and set SDK: to the location on your file system where OpenJDK is installed.
You should now be able to build the project and run and debug tests with the dropdown menu's of IntelIJ.