title: Adding .class files onto ant classpath for groovc ant task compilation?
body: <p>I have a project called <strong>MyApp</strong> in eclipse. I have another project called <strong>TestRepository</strong> that contains in it, the testcases written for MyApp project. </p>
  
  <p>I am trying to compile the testcases and generate a junit report using groovyc ant task whose classpath is : </p>
  
  <pre><code>&lt;path id="classpath"&gt;
     &lt;fileset dir="lib/MyApp"&gt;
        &lt;include name="*.jar" /&gt;
     &lt;/fileset&gt;   
  &lt;/path&gt;
  </code></pre>
  
  <p>The jar files of MyApp are added on classpath. If in case, a class of MyApp project referred in a testcase is not existing in the jars of lib folder, I want the groovyc to search for the class in <code>MyApp/bin</code> package. </p>
  
  <p>How can I do this? </p>
  
  <p>PS: MyApp project is very huge and I'd rather not want groovyc task to compile all the src files in MyApp but just pick up the additional .class file from bin and put it on its classpath.</p>