Edwin Kempin | 0ebb76d | 2013-11-08 13:54:20 +0100 | [diff] [blame] | 1 | Build |
| 2 | ===== |
| 3 | |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 4 | This plugin is built with Bazel. |
David Pursehouse | 1f3424d | 2014-03-12 19:48:50 +0900 | [diff] [blame] | 5 | |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 6 | Clone (or link) this plugin to the `plugins` directory of Gerrit's source tree. |
David Ostrovsky | 3637114 | 2014-07-21 10:30:00 +0200 | [diff] [blame] | 7 | |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 8 | Then issue |
David Ostrovsky | 3637114 | 2014-07-21 10:30:00 +0200 | [diff] [blame] | 9 | |
| 10 | ``` |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 11 | bazel build plugins/@PLUGIN@ |
David Ostrovsky | 3637114 | 2014-07-21 10:30:00 +0200 | [diff] [blame] | 12 | ``` |
| 13 | |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 14 | in the root of Gerrit's source tree to build |
David Ostrovsky | 3637114 | 2014-07-21 10:30:00 +0200 | [diff] [blame] | 15 | |
| 16 | The output is created in |
| 17 | |
| 18 | ``` |
David Pursehouse | 28c0048 | 2019-10-16 12:48:35 +0900 | [diff] [blame] | 19 | bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar |
David Ostrovsky | 3637114 | 2014-07-21 10:30:00 +0200 | [diff] [blame] | 20 | ``` |
| 21 | |
Nguyen Tuan Khang Phan | 302975e | 2020-01-28 13:34:01 -0500 | [diff] [blame] | 22 | To execute the tests run either one of: |
| 23 | |
| 24 | ``` |
| 25 | bazel test --test_tag_filters=@PLUGIN@ //... |
| 26 | bazel test plugins/@PLUGIN@:@PLUGIN@_tests |
| 27 | ``` |
| 28 | |
Paladox none | f040fbb | 2017-02-05 17:13:03 +0000 | [diff] [blame] | 29 | This project can be imported into the Eclipse IDE. |
| 30 | Add the plugin name to the `CUSTOM_PLUGINS` set in |
| 31 | Gerrit core in `tools/bzl/plugins.bzl`, and execute: |
David Ostrovsky | 8770d54 | 2013-11-11 22:39:45 +0100 | [diff] [blame] | 32 | |
| 33 | ``` |
| 34 | ./tools/eclipse/project.py |
| 35 | ``` |
Nguyen Tuan Khang Phan | 887cbcd | 2020-01-28 13:26:14 -0500 | [diff] [blame] | 36 | |
| 37 | [Back to @PLUGIN@ documentation index][index] |
| 38 | |
| 39 | [index]: index.html |