使用 ANT 从两个独立的 Web 应用程序构建 1 个战争 [英] Build 1 war from two separate web applications using ANT

查看:25
本文介绍了使用 ANT 从两个独立的 Web 应用程序构建 1 个战争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能通过使用 ANT,从两个独立的 eclipse java web 应用程序项目中创建 1 个 war 文件?除了将正确的文件复制到正确的位置之外,我还必须能够创建两个单独的 web.xml.此外,两个项目中存在的其他一些文件应合并为一个文件.

Is it possible, by using ANT, to create 1 war-file out of two separate eclipse java web application projects? Besides from just copying the right files to the right places i would have to be able two create one single web.xml. Also some other files that exists in both projects should be united into one file.

谢谢

图片

推荐答案

如果您想将多个 Web 应用程序打包在一起,那么标准格式是 EAR 文件.http://en.wikipedia.org/wiki/EAR_(file_format)

If you want to package multiple web applications together, the standard format for that is an EAR file. http://en.wikipedia.org/wiki/EAR_(file_format)

这篇关于使用 ANT 从两个独立的 Web 应用程序构建 1 个战争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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