title: How to include the jars referenced in "Java Build Path" section of an Eclipse project in a jar file generated with Ant using a build.xml file
body: <p>basically that's my requirement , if someone adds or deletes a jar reference in the section "Java Build Path" , then that jar should be included ( or not included in case of deletion)  when the project is built and a jar of the project is generated with a build.xml ant file. I was expecting to reference a property or variable in the xml file. something like:</p>
  
  <pre><code>&lt;!-- copy the JARs that you need to "target" directory  --&gt;
  &lt;copy todir="target"&gt;
      &lt;fileset dir="${buildPath}" includes="*.jar" /&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>where ${buildPath} is pointing to "Java Build Path". That is just an example and doesn't work</p>
  
  <p>Notice that I don't want to put every jar individually  in the build.xml , but to use something like includes="*.jar" , so if someone changes "Java Build Path" , I don't have to change the build.xml</p>