The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve images (gif) from within the plugin jar file

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2012

I want to display images contained in the plugin jar file.

I refered to the online doc below.

https://developer.atlassian.com/display/BAMBOODEV/Downloadable+Plugin+Resources

1. The directory of 'testimages' is created in the plugin jar file. And under the directory, AAA.gif resides.

testimages/AAA.gif

2. The line below is added in the atlassian-plugin.xml.

<resource type="download" name="testimages/" location="testimages/"/>

3. In the relevant ftl file, the line is added.

<img src="testimages/AAA.gif">

4. The image is not displayed.

Where did I make a mistake?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Deleted user
February 16, 2012

Did you include {<tt>server root}/download/resources/{plugin key}:{module key}/testimages?</tt>

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2012

Thank you.

It worked.

TAGS
AUG Leaders

Atlassian Community Events