【问题标题】:Ant build.xml ear generationAnt build.xml 耳朵生成
【发布时间】:2020-02-27 12:49:43
【问题描述】:

我有一个 j2ee 应用程序。该应用程序被打包为 ear 文件。在那个耳朵文件里面有两场战争。谁能指导我如何使用 ant build.xml 脚本创建一个包含那些战争的耳朵文件。

【问题讨论】:

  • ear task 文档非常简单。你以前写过 Ant 构建文件吗?

标签: java jsp servlets ant


【解决方案1】:

您可以使用以下命令使用命令行创建 EAR:

jar -cvf <<ear file name>> <<war files to be included>>

您也可以参考问题how to create ear file, and include war and jar files inside that。

另外,如果你想使用 build.xml 来做,你可以参考How do I create an EAR file with an ant build including certain files?

希望对你有帮助。

【讨论】:

  • 其实我只需要通过ant build来生成ear
  • 查看我提供的第二个链接。
猜你喜欢
  • 1970-01-01
  • 2012-02-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-07-31
相关资源
最近更新 更多