我正在尝试从eclipse运行build.xml文件,以自动化创建war并将其部署到服务器的webapps文件夹的过程。我为此写了一个脚本,但在运行它时得到一个错误:"war不支持嵌套的"fileset“元素”。
我在谷歌上搜索了很多,但找不到解决方案。请帮助任何人。我使用的是Ant版本1.9.7。提前谢谢。
<target name="warTarget">
<war warfile="myjar.war" needxmlfile="false">
<filset dir="WebContent"></filset>
</war>
<antcall target="deployTarget"></antcall>
</target>发布于 2016-08-10 14:54:54
你把fileset拼错了
<filset dir="WebContent"></filset>它应该是
<fileset dir="WebContent"/>有关如何使用war任务Please see创建WAR的更多信息
希望这能有所帮助
https://stackoverflow.com/questions/38866025
复制相似问题