From 8777ab9ee8ec8d4678a592762ebffb0602940c88 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Sat, 5 Apr 2014 11:11:02 +0300 Subject: [PATCH] Extra instructions added --- ReadMe.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index e499805f7d9..6188b083b63 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -32,18 +32,25 @@ Then, you need to run ant -f build.xml -which will build the binaries of the compiler and put them into the 'dist' directory. +which will build the binaries of the compiler and put them into the 'dist' directory. You may need to increase the **heap size** for Ant using +[ANT_OPTS](http://www.liferay.com/community/wiki/-/wiki/Main/Ant+opts). -Maven distribution is built separately, run +**OPTIONAL:** Maven distribution is built separately, run mvn package -from 'libraries' directory after building the compiler. +from 'libraries' directory after building the compiler. Refer to `libraries/ReadMe.md` for details. ## Working with the project in IDEA The [root kotlin project](https://github.com/JetBrains/kotlin) already has an IDEA project, you can just open it in IDEA. +You may need to set the Project SDK (File -> Project Structure -> Project). +You may also need to add `tools.jar` to your SDK: File -> Project Structure -> SDKs -> -> Classpath, +then choose the `tools.jar` in the JDK's `lib` directory. + +If you are not dealing with Android, you may need to disable the Android Plugin in order to compile the project. + Since Kotlin project contains code written in Kotlin itself, you will also need a Kotlin plugin to build the project in IntelliJ IDEA. To keep the plugin version in sync with the rest of the team and our [Continuous Integration server](http://teamcity.jetbrains.com/project.html?projectId=Kotlin&tab=projectOverview) you should install the according to the [instructions below](#plugin-for-contributors).