title: How to exclude a source package using javac in Ant?
body: <p>I've looked at a bunch of different examples, and tried several variations, but can't seem to get this working correctly. It also appears that you can't exclude an entire directory with javac, but only files, which I suppose means you can't specify a package? Here is what I have:</p>
  
  <pre><code>&lt;javac srcdir="src" destdir="WEB-INF/classes" excludes="path/to/excluded/package/*.java"&gt;
      &lt;classpath refid="compile.classpath"/&gt; &lt;!-- reference defined earlier --&gt;
  &lt;/javac&gt;
  </code></pre>