title: android build.xml multiple source directories
body: <p>So I made a project with 2 source directories: one for actual code and the other for tests.
  It worked well in eclipse but then I decided to start using command line and the ant tool.</p>
  
  <p>Android has a built-in function of generating build.xml, so I used the command 'android update project -p ProjectName'</p>
  
  <p>This build.xml for installing works fine and I can run the application on the emulator. However, it only compiles the files from my source directory and the files from my test directory are not compiled. That means that I cannot run my unit tests from the command line and if I do I get class not found exceptions.</p>
  
  <p>Is there any way to include another source directory so that it would compile my unit tests as well?</p>
  
  <p>This is the build.xml that was generated (the rest is comments and not added here):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
  &lt;project name="ProjectNameActivity" default="help"&gt;
     &lt;property file="local.properties" /&gt;
     &lt;property file="build.properties" /&gt;
     &lt;property file="default.properties" /&gt;
     &lt;path id="android.antlibs"&gt;
        &lt;pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /&gt; 
        &lt;pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /&gt; 
        &lt;pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /&gt; 
     &lt;/path&gt;
     &lt;taskdef name="setup" classname="com.android.ant.SetupTask" classpathref="android.antlibs" /&gt; 
     &lt;setup /&gt; 
  &lt;/project&gt;
  </code></pre>