Add gerrit_daemon runtime config for IntelliJ

Change-Id: Ib362632d457d982b82e9c09d6bea8ecbaf7b2f26
This commit is contained in:
Patrick Hiesel 2016-11-11 11:10:08 -08:00
parent b33ef447a0
commit 96c6c9ba71
2 changed files with 24 additions and 2 deletions

View File

@ -152,9 +152,15 @@ The Gerrit build works with Bazel's [IntelliJ
plugin](https://ij.bazel.io). Do the following:
* Install the plugin (requires IJ 2016.2 or newer)
* Select "File > Import Bazel project".
* Restart IntelliJ
* Select "Import Bazel Project" from the homescreen
* Select "Workspace": (directory holding gerrit source)
* Select "project view: generate from BUILD": (enter top level BUILD file)
* Select "Import from workspace > Project view" : `.bazelproject`
* Once the project was created, copy `tools/intellij/gerrit_daemon.xml` to
`.idea/runConfigurations/gerrit_daemon.xml` in your IntelliJ output
* In Settings > Appearance & Behavior > Path Variables create a new path
variable called `TESTSITE_PATH` and provide the path to your local testsite
as value
=== Eclipse

View File

@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="gerrit_daemon" type="Application" factoryName="Application" singleton="true">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="Main" />
<option name="PROGRAM_PARAMETERS" value="daemon --console-log --show-stack-trace -d ${TESTSITE_PATH}" />
<option name="WORKING_DIRECTORY" value="file://$MODULE_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name=".workspace" />
<envs />
<method />
</configuration>
</component>