From 0fc1747c3568375ffba4fbb3fd8e5475ba0dec86 Mon Sep 17 00:00:00 2001 From: avneesh91 Date: Fri, 8 Dec 2017 10:12:28 +0530 Subject: [PATCH] [Issue-27716]: CONTRIBUTING.md IntelliJ configurations settings are confusing. 1. Added the Application to the edit configerations help section for IntelliJ. 2. Added information about how to run a local copy of elasticsearch from the source. --- CONTRIBUTING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6bbb655a18b5f..5e81b188288db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,11 +119,13 @@ Alternatively, `idea.no.launcher=true` can be set in the [`idea.properties`](https://www.jetbrains.com/help/idea/file-idea-properties.html) file which can be accessed under Help > Edit Custom Properties (this will require a restart of IDEA). For IDEA 2017.3 and above, in addition to the JVM option, you will need to go to -`Run->Edit Configurations...` and change the value for the `Shorten command line` setting from +`Run->Edit Configurations->...->Defaults->JUnit` and change the value for the `Shorten command line` setting from `user-local default: none` to `classpath file`. You may also need to [remove `ant-javafx.jar` from your classpath](https://github.com/elastic/elasticsearch/issues/14348) if that is reported as a source of jar hell. +To run an instance of elasticsearch from the source code run `gradle run` + The Elasticsearch codebase makes heavy use of Java `assert`s and the test runner requires that assertions be enabled within the JVM. This can be accomplished by passing the flag `-ea` to the JVM on startup.