Upgrading Ant in Android SDK
===

I am trying to run a test and get coverage for an Android application I developed, and because this is for research purposes, I would also like to be able get coverage for the Android source code being call as well as coverage for my application under test. I followed some advice on <a href="http://stackoverflow.com/questions/11677754/eclipse-with-adt-junit-test-not-running-with-eclemma">another question</a> I asked and am currently trying to use Ant.

I ran

    ant emma debug install test

in my test but it gave me the following error:

    BUILD FAILED
    /scratch/android-sdk-linux/tools/ant/build.xml:377: The Android Ant-based build
    system requires Ant 1.8.0 or later. Current version is 1.7.1

I went online and installed the latest version of Ant directly from the Apache website, but now I've realized that I need to upgrade the version of Ant in the SDK directory. I haven't just simply copy and pasted because I had a feeling that would mess up with the paths in the configuration that are probably called when commands such as above are called.

What I want to know is if there is a way to update specifically the version of Ant contained in the Android SDK?

Thanks.