title: Ant - How to exclude Java test files?
body: <p>I want to copy Java code from a source folder to a target folder and compile it, but need to exclude some testing code. How can I only copy the non-test code? For example, I want to include <code>bb/app/lite2</code> and exclude <code>bb/app/test1</code>, <code>bb/app/cg</code>,...</p>
  
  <p>I know I can use the exclude element, but I don't want to write so many exclude patterns. So can I just use:</p>
  
  <p><code>&lt;exclude name="bb/app/**"&gt;</code> and then use <code>&lt;include name="bb/app/lite2"&gt;</code>?</p>