I want to display JIRA installation directory path to JIRA admin user. How can I get installation directory path usng api?
You can use JIRAHome as well, if you must need the plugins directory.
You can inject JiraHome in the constructor or get it using ComponentAccessor.
JiraHome jiraHome = ComponentAccessor.getComponent(JiraHome.class);
Hi Jobin,
I need path of JIRA installation directory, as I want to display location of startup.sh and shutdown.sh file on my plugin screen. Can I do that by using ComponentAccessor? Because I have checked api of ComponentAccessor and didnt find anything for JIRA installation directory. I know hoe to get JIRA home directory, but its of no use to me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you can indicate what the final aim, it may help.
ClassLoaderUtils.getResource usually helps to read directories and files provided, they are with the webapp directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey Renjith,
On my plugin screen i want to display location of startup.sh and shutdown.sh.
For that I need to get JIRA installation directory path
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It really depends.
System.getProperty("user.dir") might help, but I am not sure if it is portable (WAR deployments).
(or catalina.base)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.