diff options
author | G. Ann Campbell <ann.campbell@sonarsource.com> | 2019-05-15 16:05:26 -0400 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-16 20:21:08 +0200 |
commit | de0777600015768d08792db2864a3c595654435c (patch) | |
tree | 811d889701401fc64b703c051fa03d3f19c72294 /server/sonar-docs/src | |
parent | d8d26012907e5cbe85b9c77275fdf6995a79ae94 (diff) | |
download | sonarqube-de0777600015768d08792db2864a3c595654435c.tar.gz sonarqube-de0777600015768d08792db2864a3c595654435c.zip |
DOC serve static resources from plugin
Diffstat (limited to 'server/sonar-docs/src')
-rw-r--r-- | server/sonar-docs/src/pages/extend/developing-plugin.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-docs/src/pages/extend/developing-plugin.md b/server/sonar-docs/src/pages/extend/developing-plugin.md index 1c804375a92..862241a6ab5 100644 --- a/server/sonar-docs/src/pages/extend/developing-plugin.md +++ b/server/sonar-docs/src/pages/extend/developing-plugin.md @@ -374,6 +374,9 @@ The common use case is to write a language plugin that will allow some other plu Plugins are loaded in isolated classloaders. It means a plugin can't access another plugin's classes. There is an exception for package names following pattern `org.sonar.plugins.<pluginKey>.api`. For example all classes in a plugin with the key myplugin that are located in `org.sonar.plugins.myplugin.api` are visible to other plugins. +### Serving Static Resources +If you need to serve static resources from your plugin such as images or JavaScript files, place them in a directory under `resources` named `static` (`myplugin/src/main/resources/static`). At runtime they'll be available from `http://{server}/static/{pluginKey}/{file}`. + ## Versioning and API Deprecation ### Versioning Strategy |