Custom Android build.xml for rename manifest package
<p>I wanna build one app into 2 version, one paid, one free, 
and I know aapt have a option "--rename-manifest-package" should help, but I don't know How to use it in build.xml.
I find 2 place I may modify:</p>

<pre><code> &lt;!-- first --&gt;
 &lt;target name="-resource-src" depends="-dirs"&gt;
    &lt;echo&gt;Generating R.java / Manifest.java from the resources...&lt;/echo&gt;
    &lt;exec executable="${aapt}" failonerror="true"&gt;
        &lt;arg value="package" /&gt;
        &lt;arg line="${v.option}" /&gt;
        &lt;arg value="-m" /&gt;
        &lt;arg value="-J" /&gt;
        &lt;arg path="${gen.absolute.dir}" /&gt;
        &lt;arg value="-M" /&gt;
        &lt;arg path="AndroidManifest.xml" /&gt;
        &lt;arg value="-S" /&gt;
        &lt;arg path="${resource.absolute.dir}" /&gt;
        &lt;arg value="-I" /&gt;
        &lt;arg path="${android.jar}" /&gt;       
    &lt;/exec&gt;
&lt;/target&gt;



 &lt;!-- sencod --&gt;
 &lt;target name="-package-resources"&gt;
    &lt;echo&gt;Packaging resources&lt;/echo&gt;
     &lt;aaptexec executable="${aapt}"
            command="package"
            manifest="AndroidManifest.xml"
            resources="${resource.absolute.dir}"
            assets="${asset.absolute.dir}"
            androidjar="${android.jar}"
            outfolder="${out.absolute.dir}"
    basename="${ant.project.name}" &gt;
&lt;/aaptexec&gt;
&lt;/target&gt;
</code></pre>

<p>this article( <a href="http://blog.uncommons.org/2010/07/19/building-two-versions-of-the-same-android-app/">http://blog.uncommons.org/2010/07/19/building-two-versions-of-the-same-android-app/</a> ) said I should adding  "--rename-manifest-package" at the second place, but How?</p>
