我正在使用eclipse构建使用ant的耳朵文件。我正在使用oc4j,并且我想确保构建中包含orion-application.xml。我目前使用但不起作用的是:如何创建包含某些文件的ant版本的EAR文件?
<target name="ear" depends=""> <echo>Building the ear file</echo> <copy todir="${build.dir}/META-INF"> <fileset dir="${conf.dir}" includes="orion-application.xml"/> </copy> <ear destfile="${dist.dir}/${ant.project.name}.ear" appxml="${conf.dir}/application.xml"> <fileset dir="${dist.dir}" includes="*.jar,*.war"/> </ear> </target>
什么是正确的方法来添加到耳朵?应该进入META-INF
文件夹
工作太棒了!我在理解文档方面有点困难。 – user149100 2009-08-12 17:00:46
Ant EAR task => http://ant.apache.org/manual/Tasks/ear.html – 2010-06-04 06:37:40
工作的很好,虽然我得到一个令人讨厌的警告:“选择的耳朵文件包括一个META-INF/application.xml,它将会忽略(请使用appxml属性来完成任务)“ – stian 2011-06-30 13:53:17