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

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

问题描述

是否可以通过使用ANT在两个单独的Eclipse Java Web应用程序项目中创建1个War-file?除了将正确的文件复制到正确的位置之外,我还必须能够两个创建一个单独的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.

谢谢

Pich

推荐答案

如果要将多个Web应用程序打包在一起,则其标准格式为EAR文件。 http://en.wikipedia.org/wiki/EAR_(文件格式)

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天全站免登陆