commit | f046ac6773ea1c6e10b5e95b763ae685c24ec7f1 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Feb 01 14:21:35 2024 +0000 |
committer | Edwin Kempin <ekempin@google.com> | Thu Feb 01 14:21:35 2024 +0000 |
tree | 53e51e93a210c34112aee85a738c812a7da48dd4 | |
parent | 01a35c85680bda3bb724f9bf0b266ad36c6dd0e9 [diff] |
Use Path.of() instead of Paths.get() Path.of() makes Paths.get() obsolete in Java 11 Change-Id: Ifeafe5bdd9cbd3bbe13f86955bb888734ca5984d Signed-off-by: Edwin Kempin <ekempin@google.com>
A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.
For running unit tests execute:
bazel test --test_output=all //plugins/delete-project/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/delete-project/web:lint_test bazel run //plugins/delete-project/web:lint_bin -- --fix "$(pwd)/plugins/delete-project/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/delete-project/web:gr-delete-repo cp -f bazel-bin/plugins/delete-project/web/gr-delete-repo.js plugins/
and let the Dev Helper redirect from .+/plugins/delete-project/static/gr-delete-repo.js
to http://localhost:8081/plugins_/gr-delete-repo.js
.