Android ant build: how to run Android download and not update build.xml, proguard.cfg

I run the standard ant script build.xml that is created when the command runs android create project. To verify that mine is local.propertiesinstalled correctly, I added a task at the beginning of the build.xmlscript to run the command:

android update project -p .

Now I get the following message every time I run an ant script that compresses my file build.xmland creates the file proguard.cfg!

The build.xml file is too old and needs updating

So, I moved the ant script to another file that will not be dumped.

Is there a way to run a command android update project -p .that is not clobber build.xmland create proguard.cfg?

+3
source share
3 answers

. build.xml.

<!-- The following will prevent for 'android' tool to overwrite this file.

     (until sdk r12)
     classname="com.android.ant.SetupTask"

     (since sdk r13 FIXME)
     version-tag:custom
-->

" Android" build.xml. r13.

  • sdk r13
  • aosp/master

updateProject() com.android.sdklib.internal.project.ProjectCreator build.xml . ( sdkmanager/libs/sdklib/src/com/android/sdklib/internal/project/ProjectCreator.java)

+1

build.xml, android, :


     ****** IMPORTANT ******
     ***********************
     In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
     in order to avoid having your file be overridden by tools such as "android update project"

, , .

0

All Articles