-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp-servers.gradle
109 lines (104 loc) · 3.14 KB
/
app-servers.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Map<String, Map<String, String>> appServers = [
geronimo: [
deployDirName: "deploy",
libGlobalDirName: "var/shared/lib",
name: "geronimo",
portalDirName: "deploy/liferay-portal",
version: "2.2.1"
],
glassfish: [
deployDirName: "autodeploy",
libGlobalDirName: "domains/domain1/lib",
name: "glassfish",
portalDirName: "domains/domain1/applications/liferay-portal",
version: "3.1.2.2"
],
jboss: [
deployDirName: "standalone/deployments",
libGlobalDirName: "modules/com/liferay/portal/main",
name: "jboss",
portalDirName: "standalone/deployments/ROOT.war",
version: "7.1.1"
],
jboss5: [
deployDirName: "standalone/deploy",
libGlobalDirName: "server/default/lib",
name: "jboss",
portalDirName: "standalone/deployments/ROOT.war",
version: "5.1.0"
],
jbossEap: [
deployDirName: "standalone/deployments",
libGlobalDirName: "modules/com/liferay/portal/main",
name: "jboss-eap",
portalDirName: "standalone/deployments/ROOT.war",
version: "6.1.0"
],
jbossWildfly: [
deployDirName: "standalone/deployments",
libGlobalDirName: "modules/com/liferay/portal/main",
name: "jboss-wildfly",
portalDirName: "standalone/deployments/ROOT.war",
version: "8.1.0"
],
jetty: [
deployDirName: "webapps",
libGlobalDirName: "lib/ext/liferay",
name: "jetty",
portalDirName: "webapps/root",
version: "8.1.10"
],
jonas: [
deployDirName: "deploy",
libGlobalDirName: "lib/ext",
name: "jonas",
portalDirName: "deploy/liferay-portal",
version: "5.2.3"
],
resin: [
deployDirName: "webapps",
libGlobalDirName: "ext-lib",
name: "resin",
portalDirName: "webapps/ROOT",
version: "4.0.33"
],
tcserver: [
deployDirName: "liferay/webapps",
libGlobalDirName: "liferay/lib",
name: "tcserver",
portalDirName: "liferay/webapps/ROOT",
version: "2.6.4"
],
tomcat: [
libGlobalDirName: "lib/ext",
managerPassword: "tomcat",
managerUser: "tomcat",
name: "tomcat",
portalDirName: "webapps/ROOT",
version: "7.0.42"
],
weblogic: [
deployDirName: "domains/liferay/autodeploy",
libGlobalDirName: "domains/liferay/lib",
name: "weblogic",
portalDirName: "domains/liferay/autodeploy/ROOT",
version: "12.1.2"
],
websphere: [
deployDirName: "profiles/liferay/wsadmin-deploy",
libGlobalDirName: "lib/ext",
name: "websphere",
portalDirName: "profiles/liferay/installedApps/liferay-cell/liferay-portal.ear/liferay-portal.war",
version: "7.0"
]
]
ext.appServers = appServers
ext {
appServerParentDir = file("${gradle.lfrSdkDir}/../bundles")
appServerDir = file(appServerParentDir.toString() + "/" + appServers[appServerType].name + "-" + appServers[appServerType].version)
appServerDeployDir = file(appServerDir.toString() + "/" + appServers[appServerType].deployDirName)
appServerLibGlobalDir = file(appServerDir.toString() + "/" + appServers[appServerType].libGlobalDirName)
appServerPortalDir = file(appServerDir.toString() + "/" + appServers[appServerType].portalDirName)
appServerVersion = appServers[appServerType].version
appServerLibPortalDir = file(appServerPortalDir.toString() + "/WEB-INF/lib")
}