title: Eclipse: Ant script to export User Library/Libraries for project
body: <p>I am new to Java programming. I initially started with NetBeans but have moved to Eclipse given the advice from a friend.</p>
  
  <p>In NetBeans, a pre-written ant build script for the project would generate a Project.jar file and place all required libraries/jars in a lib/ folder.</p>
  
  <p>However, in Eclipse it appears that I need to write my own ant script.  I have written a few lines to generate the jar file:</p>
  
  <p><code>&lt;target name="compile"&gt;
     &lt;mkdir dir="${build.dir}"/&gt;
     &lt;javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="jars" debug="on"/&gt;
  &lt;/target&gt;</code></p>
  
  <p>How do I write a command to copy all of the jars in my User Library to a ${build.dir}/lib/ folder?</p>
  
  <p>Thanks.</p>