001
014
015 package com.liferay.portal.deploy.auto;
016
017 import com.liferay.portal.deploy.DeployUtil;
018 import com.liferay.portal.kernel.deploy.auto.AutoDeployer;
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.PropsKeys;
022 import com.liferay.portal.kernel.util.ServerDetector;
023 import com.liferay.portal.kernel.util.StringPool;
024 import com.liferay.portal.tools.deploy.ExtDeployer;
025 import com.liferay.portal.util.PrefsPropsUtil;
026 import com.liferay.portal.util.PropsValues;
027
028 import java.util.ArrayList;
029 import java.util.List;
030
031
035 @Deprecated
036 public class ExtAutoDeployer extends ExtDeployer implements AutoDeployer {
037
038 public ExtAutoDeployer() {
039 try {
040 baseDir = PrefsPropsUtil.getString(
041 PropsKeys.AUTO_DEPLOY_DEPLOY_DIR,
042 PropsValues.AUTO_DEPLOY_DEPLOY_DIR);
043 destDir = DeployUtil.getAutoDeployDestDir();
044 appServerType = ServerDetector.getServerId();
045 unpackWar = PrefsPropsUtil.getBoolean(
046 PropsKeys.AUTO_DEPLOY_UNPACK_WAR,
047 PropsValues.AUTO_DEPLOY_UNPACK_WAR);
048 filePattern = StringPool.BLANK;
049 jbossPrefix = PrefsPropsUtil.getString(
050 PropsKeys.AUTO_DEPLOY_JBOSS_PREFIX,
051 PropsValues.AUTO_DEPLOY_JBOSS_PREFIX);
052 tomcatLibDir = PrefsPropsUtil.getString(
053 PropsKeys.AUTO_DEPLOY_TOMCAT_LIB_DIR,
054 PropsValues.AUTO_DEPLOY_TOMCAT_LIB_DIR);
055 wildflyPrefix = PrefsPropsUtil.getString(
056 PropsKeys.AUTO_DEPLOY_WILDFLY_PREFIX,
057 PropsValues.AUTO_DEPLOY_WILDFLY_PREFIX);
058
059 List<String> jars = new ArrayList<>();
060
061 addRequiredJar(jars, "util-bridges.jar");
062 addRequiredJar(jars, "util-java.jar");
063 addRequiredJar(jars, "util-taglib.jar");
064
065 this.jars = jars;
066
067 checkArguments();
068 }
069 catch (Exception e) {
070 _log.error(e, e);
071 }
072 }
073
074 private static final Log _log = LogFactoryUtil.getLog(
075 ExtAutoDeployer.class);
076
077 }