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>