title: Android custom build using Ant
body: <p>These 4 files (build.xml, local.properties, projects.properties, proguard.cfg) are auto-generated when running:</p>
  <blockquote>
  <p>android update project --name TestApp --target 10 -p .</p>
  <p>Updated project.properties</p>
  <p>Updated local.properties</p>
  <p>Added file ./build.xml</p>
  <p>Updated file ./proguard.cfg</p>
  </blockquote>
  <p>But I want the &quot;auto-gen&quot; build.xml to also include the following &quot;pre-compile&quot; code as well, is there a way to do that? Is there some &quot;include&quot; file or &quot;template&quot; file which can include that?</p>
  <pre><code>  &lt;target name=&quot;config&quot;&gt;
  
    &lt;property name=&quot;config-target-path&quot; value=&quot;${source.dir}/com/androidengineer/antbuild&quot;/&gt;
  
    &lt;!-- Copy the configuration file, replacing tokens in the file. --&gt;
    &lt;copy file=&quot;config/Config.java&quot; todir=&quot;${config-target-path}&quot;
          overwrite=&quot;true&quot; encoding=&quot;utf-8&quot;&gt;
     &lt;filterset&gt;
      &lt;filter token=&quot;CONFIG.LOGGING&quot; value=&quot;${config.logging}&quot;/&gt;
     &lt;/filterset&gt;
    &lt;/copy&gt;
  
   &lt;/target&gt;
  </code></pre>