wldeploy 部署文件夹中的所有文件 [英] wldeploy on all files in deployment folder

查看:26
本文介绍了wldeploy 部署文件夹中的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为本地开发环境自动化 Web 逻辑部署.我目前正在使用一个主 ant 构建文件,该文件编译约 60 个项目并将相关的 ear、war、jar 文件复制到根目录下的部署文件夹中.现在我们通过wl控制台一一安装.我正在尝试使用主构建文件中的 wldeploy 自动执行此操作.我希望能够为这个任务提供一个要按顺序部署的文件列表.Ant-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆