To get the exact path of your server folder in Liferay , then the below code will be help you inspite of any Operating System.
import java.util.Properties;
Properties properties = PortalUtil.getPortalProperties();
String serverHome = properties.getProperty("liferay.home");
import java.util.Properties;
Properties properties = PortalUtil.getPortalProperties();
String serverHome = properties.getProperty("liferay.home");
No comments:
Post a Comment