title: Creating an ear-File with ant
body: <p>I am new to ant i referred many sites , i need to build.xml for my project which consists
  of two modules i have application.xml file which represents corresponding war file</p>
  
  <p>so my question is it sufficient to add the application.xml file </p>
  
  <pre><code>&lt;ear destfile="${dist.dir}/${ant.project.name}.ear" appxml="${conf.dir}/application.xml"&gt;  
   &lt;metainf dir="${build.dir}/META-INF"/&gt; 
   &lt;fileset dir="${dist.dir}" includes="*.jar,*.war"/&gt;
  &lt;/ear&gt;
  </code></pre>
  
  <p>whether this will refer the corresponding war files or i need to compile the whole scenario please let me know. how solve this.</p>