title: What are some tips on shortening the classpath in ant?
body: <p>When deploying my application on a Hudson Server (windows machine) , I'm having problems calling java.exe because my class-path is too long -- Windows taps out after certain length.</p>
  
  <p>The <code>classpath</code> is basically hundreds of <code>Jar</code> files separated by semicolons</p>
  
  <p>Assume the following classpath would be too large if each jar is explicitly listed in the classpath: </p>
  
  <pre><code>&lt;path id="classpath.project"&gt;
      &lt;fileset dir="lib" includes="**/*.jar" /&gt;
  &lt;/path&gt;
  </code></pre>
  
  <p>What can I do in ant to shorten my classpath?</p>