@winner-fed/winner-deploy 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
import os
|
|
6
6
|
import utils
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# 读取 deploy.xml 配置文件定义的 webAppName
|
|
9
|
+
webAppName = "${webAppName}"
|
|
9
10
|
# TIPS: 执行脚本的路径是在 安装目录 下,对应 deploy.xml 里的 workspace 字段
|
|
10
|
-
pkgPath = os.path.join(os.getcwd(),
|
|
11
|
+
pkgPath = os.path.join(os.getcwd(), webAppName)
|
|
11
12
|
|
|
12
13
|
def chmodPkg():
|
|
13
14
|
for root,dirs,files in os.walk(pkgPath):
|
|
@@ -21,7 +21,8 @@ except:
|
|
|
21
21
|
|
|
22
22
|
name = "{{name}}"
|
|
23
23
|
type = "{{type}}"
|
|
24
|
-
|
|
24
|
+
# 读取 deploy.xml 配置文件定义的 webAppName
|
|
25
|
+
webAppName = "${webAppName}"
|
|
25
26
|
|
|
26
27
|
def install(name, type):
|
|
27
28
|
conf = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "conf")
|
|
@@ -46,7 +47,7 @@ def install(name, type):
|
|
|
46
47
|
source = ""
|
|
47
48
|
|
|
48
49
|
if(type == "bizframe"):
|
|
49
|
-
destinationdir = "./" +
|
|
50
|
+
destinationdir = "./" + webAppName + "/" + fileJson[x]["dir"]
|
|
50
51
|
source = "./tmp/source/" + fileJson[x]["path"]
|
|
51
52
|
elif(type == "subsystem"):
|
|
52
53
|
destinationdir = "./" + fileJson[x]["dir"]
|