Which plugin to be used for com.atlassian.confluence.setup. Need to execute below statements to get the path for confluence home directory :slight_smile:
BootstrapManager bootstrapManager = new DefaultBootstrapManager();
String confluenceHome = bootstrapManager.getWebAppContextPath() ;
Getting below error while using com.atlassian.confluence.setup
cannot find symbol
[ERROR] symbol: class setup
[ERROR] location: package com.atlassian.confluence
Hi Srijani,
You can access as follows
Confluence 5.5 and earlier:
String confluenceHome = bootstrapManager.getConfluenceHome();
Confluence 5.6 and later:
String confluenceHome = bootstrapManager.getSharedHome();
or
String confluenceHome = bootstrapManager.getLocalHome();
Thanks,
Mehmet Sirin
Is there any similar API for getting confluence temp directory ?
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.