Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: pkg/analysis_server/lib/src/plugin/plugin_locator.dart

Issue 2836953002: Minor clean-up and bug fix (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/plugin/plugin_locator.dart
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
index 85e3527fe83177a580d7e6240fbc1e41d6108ed0..acd319937a9de6b3e8f41a8b9799925ea7c70348 100644
--- a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
+++ b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
@@ -51,8 +51,14 @@ class PluginLocator {
* associated with the package.
*
* This will look first in the `pubspec.yaml` file in the package root for a
- * key indicating where the plugin is located. If such a key is not defined,
- * then it will fall back to a well known location within the package.
+ * top-level key (`analysis_plugin`) indicating where the plugin is located.
+ * The value associated with the key is expected to be the path of the plugin
+ * relative to the package root. If the directory exists, the it is returned.
+ *
+ * If the key is not defined in the `pubspec.yaml` file, or if the directory
+ * given does not exist, then this method will look for the directory
+ * `tools/analysis_plugin` relative to the package root. If the directory
+ * exists, the it is returned.
scheglov 2017/04/24 15:33:55 /the/then/s
Brian Wilkerson 2017/04/24 15:48:51 Done
*
* This method does not validate the content of the plugin directory before
* returning it.
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698