-
写了一段主要的war打包。编译文件复制的 ant 配置文件 xml
-
-
-
-
<?xml version="1.0" encoding="utf-8"?
>
-
-
<project name="jqmall" basedir="." default="build_bg">
-
<property name="project.root" value="."/>
-
<property name="project.bg.webroot" value="${project.root}/WebRoot"/>
-
<property name="build.bg.dir" value="${project.root}/build/bg"/>
-
-
-
<target name="build_bg" description="构建war包">
-
<war warfile="${project.bg.webroot}/myproject.war" webxml="${project.bg.webroot}/WEB-INF/web.xml">
-
<lib dir="${project.bg.webroot}/WEB-INF/lib"/>
-
<classes dir="${project.bg.webroot}/WEB-INF/classes"/>
-
<fileset dir="${project.bg.webroot}"/>
-
</war>
-
-
</target>
-
-
-
-
</project>
Ant 给project打包
原文:http://www.cnblogs.com/zsychanpin/p/6939758.html