Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,262,401
Community Members
 
Community Events
164
Community Groups

Can a properties file be shared among v2 custom plugins?

Can a properties file be shared among v2 custom plugins? If so, where should the properties file be placed and how do I access it from the plugin code?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

If the property file is something that needs to be retained for an upgrade, it is better to go into the home directory.

You should be able to add property files in WEB-INF/classes folder and access it like this.

InputStream iStream = ClassLoaderUtils.getResourceAsStream("xx.properties", this.getClass());
    ....
p = new Properties();
p.load(iStream);

TAGS
Community showcase
Published in Apps & Integrations

Mini New Cloud App Roundup: Business Teams

We are sharing mini new cloud roundups by use case to celebrate the Atlassian Marketplace's 10th Anniversary! This mini roundup is the fourth in a series of six. Check out others in the series based ...

22 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you