Building with IntelliJ

Installing IntelliJ IDEA

Download and install IntelliJ IDEA. Go ahead, I'll wait.

Creating a new workspace

As the Restlet project is composed of many plug-in projects, it is recommended to dedicate a complete workspace to it, or to structure your existing workspace using working sets (groups of projects). In the next steps we will create a new workspace.

First, launch IntelliJ using the executable. It will ask you to select the location of the workspace to create. If you already downloaded the Restlet source code using a SVN client like Tortoise, for example following these instructions, just indicate the value of %RESTLET_HOME% that you used. Otherwise, simply use the default workspace location or enter a new one.

Lastly, add the IntelliJ Restlet project files to as follows:

  • % cd %RESTLET_HOME%/build
  • % (cd build/tmpl/intellij; sh ./install.sh)

At this point you should have a working environment from within IntelliJ IDEA. Enjoy!

Compile, Test, Rinse, Later, Repeat

wip

Following the code style

When collaborating on an open source project, you generally want to use a common code style to facilitate comparison between multiple revisions of a source file and speed-up SVN commits. Go into the wip...

Setting-up Ant [Optional]

As you may have seen in the guide "How-To Build", we rely on Ant to build the whole project. IntelliJ has a nice support for Ant that you can leverage.

IntelliJ comes up with a built-in Ant version but it is recommended to rely on the latest 1.7 version, otherwise the "test" target which requires an optional! JUnit task will cause you troubles. Open wip ...

That's it, you are now all set to help us develop the Restlet project!

Comments (0)