title: How can I extract .class files from .jar files?
body: <p>A quick question: I like the look of this bit of Ant:</p>
  
  <pre><code>&lt;fileset dir="${lib}"&gt;  
     &lt;patternset refid="myPattern" /&gt;  
  &lt;/fileset&gt;
  </code></pre>
  
  <p>So I could use this e.g. to copy a few .jar files from ${lib} that match myPattern.</p>
  
  <p>What if what I really want is to look into each .jar in ${lib} and select only .class files that match myPattern?</p>