Example usage for com.liferay.portal.kernel.util PropsKeys MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS

List of usage examples for com.liferay.portal.kernel.util PropsKeys MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropsKeys MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS.

Prototype

String MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS

To view the source code for com.liferay.portal.kernel.util PropsKeys MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS.

Click Source Link

Usage

From source file:com.liferay.marketplace.bundle.BundleManager.java

License:Open Source License

protected String getInstallDirName() throws Exception {
    String[] autoDeployDirNames = PropsUtil.getArray(PropsKeys.MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS);

    if (ArrayUtil.isEmpty(autoDeployDirNames)) {
        throw new AutoDeployException(
                "The portal property \"" + PropsKeys.MODULE_FRAMEWORK_AUTO_DEPLOY_DIRS + "\" is not set");
    }/*from  w w  w  . j a va2  s .c  om*/

    String autoDeployDirName = autoDeployDirNames[0];

    for (String curDirName : autoDeployDirNames) {
        if (curDirName.endsWith("/marketplace")) {
            autoDeployDirName = curDirName;

            break;
        }
    }

    return autoDeployDirName;
}