Bamboo 2.3 and later
Downloadable resources are configured to map a of some downloadable file to its within the plugin jar-file.
1 2 3
<web-resource key="autofavourite-resources" name="Auto-Favourite Resources"> <resource type="download" name="autofavourite.css" location="autofavourite.css"/> </web-resource>
In Freemarker or your plugin's Action, you need to refer to a WebResourceManager, and call the method. Getting a reference to a WebResourceManager is application specific, but in Bamboo it would be:
The URL for a downloadable resource is application specific. For Bamboo it would be follows:
For the above example:
<link type="text/css" rel="stylesheet" href="http://bamboo.example.com/s/170/1.0/1/_/download/resources/com.atlassian.bamboo.plugin.autofavourite:autofavourite-resources/autofavourite.css">
will be inserted in the header of the page.