wldeploy部署文件夹中的所有文件 [英] wldeploy on all files in deployment folder
问题描述
我正在尝试针对本地开发环境自动进行Web逻辑部署.我目前正在使用一个主蚂蚁构建文件,该文件可以编译约60个项目并将相关的ear,war,jar文件复制到根目录之外的部署文件夹中.现在,我们通过wl控制台一一安装这些工具.我正在尝试使用主版本文件中的wldeploy来自动执行此操作.我希望能够向该任务提供要顺序部署的文件列表.蚂蚁contrib有类似的东西,但似乎很少有活动,这使我感到紧张.另外,如果可能的话,我宁愿使用本机ant功能.
I am trying to automate my web logic deployment for my local dev environment. I currently an using a master ant build file that compiles ~60 projects and copies the related ear,war, jar files to a deployment folder off of the root. Right now we install these one by one vie the wl console. I am trying to automate this using wldeploy in the master build file. I would like to be able to feed this task a list of files to deploy sequentially. Ant-contrib has something similar but it appears to have very little activity which makes me nervous. Plus I would prefer to use native ant functionality if possible.
蚂蚁有本地选项吗?我会更好地编写一些脚本来调用Web logic.deployer吗?还有我还不知道的另一种选择吗?
Is there an option native to ant? Would I be better-off scripting something to call web logic.deployer? Is there another option I am not yet aware of?
推荐答案
最好的选择是WLST.连接到管理服务器后,请尝试以下操作.
The best option would be WLST. Try below after connecting to your admin server.
app-list = [app1 app2 app3 ... app60]
for app in app-list:
edit()
startEdit()
app-path = "<path-to-your-apps>/"+app1
deploy(app,app-path,targets=<your-targets>)
print 'deployed '+app
activate()
使用文档 http://docs. oracle.com/cloud/latest/fmw122100/WLSTC/reference.htm#WLSTC202
如果有任何问题,请保持此线程更新.
Please keep this thread updated for any issues.
您还可以使用python OS模块动态选择应用程序列表.
You can also make use of python OS module to pick the app list dynamically.
这篇关于wldeploy部署文件夹中的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!