I created an Android project a few months ago and now have to automate the build process with Hudson. The Android dev guide mentions a build.xml file that gets created when you generate a project (http://developer.android.com/guide/developing/other-ide.html) but I dont see one in my project. Will I have to create this by hand or can I run a command to generate it?
Share
The ADT plugin doesn’t generate an Ant file.
The
androidcommand will generate an Ant file when you create a new project from the command line by callingandroid create project. You could create an example project and copy thebuild.xml,build.propertiesandlocal.propertiesfiles from that directory.Alternatively, you can just copy the
build.xmltemplate directly from$ANDROID_HOME/tools/lib/build.templatethen just change the project name.Then just create a
build.propertiesfile — it’s where you place any Ant property overrides.Also you need a
local.propertiesfile, but don’t check that into source control — this is where you specify your$ANDROID_HOMEdirectory by setting thesdk.dirproperty.