ant ear file

下面是如何用ant生成Ear文件。

<target  depends="init">
  <ear destfile="${outdir}/my.ear"
       appxml="${devdir}/META-INF/application.xml"
       compress="false">
   <fileset dir="${devdir}/lib" includes="*.jar,*.war" />
   <fileset dir="${devdir}" 
          includes="APP-INF/lib/*.jar, APP-INF/lib/*.zip" />
   <fileset dir="${devdir}" includes="APP-INF/classes/*.*"/>
  </ear>
</target>
posted @ 2011-02-21 17:34  kelin1314  阅读(427)  评论(0编辑  收藏  举报