title: How do I include a jar file into a lib folder of an ear file using ant?
body: <p>I have the following folder structure:</p>
  
  <pre><code>project.ear
          lib folder
              ProjectEJBClient.jar
          META-INF folder
          projectEJB.jar
  </code></pre>
  
  <p>My <code>build.xml</code> contains the following lines to create EAR package</p>
  
  <pre><code>&lt;ear destfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml"&gt;
        &lt;fileset dir="${build.dir}" includes="ProjectEJBClient.jar"/&gt;
        &lt;fileset dir="${build.dir}" includes="projectEJB.jar"/&gt;
  &lt;/ear&gt;
  </code></pre>
  
  <p>The above code can't create an EAR package with lib folder which includes the <code>ProjectEJBClient.jar</code> file</p>
  
  <p>I want to create a lib folder and copy <code>ProjectEJBClient.jar</code> into that lib folder. </p>
  
  <p>After this process I want to make an EAR project with this lib folder.</p>
  
  <p>I don't know how to create lib folder and copy <code>ProjectEJBClient.jar</code> into that folder and include this folder into project.ear.</p>