为 WebSphere 实现 RTC 构建的最佳方法是什么
我想利用 RTC (v2.x) 构建在 RAD (v8) 中创建的 Java EE 项目并将它们部署在 WebSphere (v7) 上。
独立于 RTC 构建,我能够创建各种 ant 脚本和 jython 脚本来执行自动化任务。问题是将其集成到单个 RTC 构建中。
我现在走的路是:
- RTC 构建定义调用外部构建命令,该命令是一个 ms-dos .bat 文件,该文件使用 ant 构建脚本调用 Rational Build Utility headless ant。
- ant 构建脚本使用 1)projectImport 2)workspaceBuild 和 3)exec 通过 jython 部署脚本调用 wsadmin。
现在构建失败,因为workspaceBuild 任务失败,因为我们定义了headlles ant 工作区中不存在的目标运行时。如果有人知道如何将新的目标运行时添加/定义到无头蚂蚁工作区中,那将非常有帮助。
我不禁感觉自己走错了路,在不同的环境之间陷入了困境,我想知道其他人如何为 WebSphere 目标实现 RTC 构建。
谢谢。
I would like to utilize the RTC (v2.x) build for Java EE projects created in RAD (v8) and deploy them on WebSphere (v7).
Independently of RTC build i am able to create all sorts of ant scripts and jython scripts to perform automated tasks. The problem is to integrate this into a single RTC build.
The path I'm on now is:
- RTC build definition calls external build command which is a ms-dos .bat file that call's the Rational Build Utility headless ant with an ant build script.
- The ant build script uses 1)projectImport 2)workspaceBuild and 3)exec to call wsadmin with a jython deploy script.
Right now the build fails because the workspaceBuild task fails because we've defined a target runtime that does not exist in the headlles ant workspace. If someone knows how to add/define a new target runtime into a headless ant workspace that would be very helpfull.
I can't help feeling that i'm on the wrong track and feel quit stuck between the different environments and I'm wondering how other people implement their RTC build for a WebSphere target.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一篇 DeveloperWorks 文章 解释了如何在持续构建场景。对于目标运行时,您可以在 Eclipse 中定义它,导出您的首选项,然后在构建过程中使用带有 useEclipsePrefs="true" 的workspacePreferenceFile Ant 任务导入它们。本文使用 Hudson,但相同的方法应该适用于 RTC Build。
There's a DeveloperWorks article that explains how to use the RAD Ant tasks in a continuous build scenario. For the target runtime, you would define that in Eclipse, export your preferences, then import them during the build using the workspacePreferenceFile Ant task with useEclipsePrefs="true". The article uses Hudson, but the same approach should work for RTC Build.