我正在使用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