title: How do I create an EAR file with an ant build including certain files?
body: <p>I'm using eclipse to build an ear file using ant. I'm using oc4j, and I want to make sure that orion-application.xml is included in the build. What I'm currently using but does not work is:</p>
  
  <pre>   &lt;target name="ear" depends="">
          &lt;echo>Building the ear file&lt;/echo>
          &lt;copy todir="${build.dir}/META-INF">
              &lt;fileset dir="${conf.dir}" includes="orion-application.xml"/>
          &lt;/copy>
          &lt;ear destfile="${dist.dir}/${ant.project.name}.ear" 
                  appxml="${conf.dir}/application.xml">
              &lt;fileset dir="${dist.dir}" includes="*.jar,*.war"/>
          &lt;/ear>
      &lt;/target></pre>
  
  <p>What is the right way to add this to the ear?</p>