是否ADT插件自动创建一个Ant构建文件? [英] Does the ADT plugin automatically create an ant build file?
问题描述
我创建了一个Android项目在几个月前,现在有自动生成过程与哈德森。 Android开发指南中提到,当您生成一个项目(http://developer.android.com/guide/developing/other-ide.html),但我没有看到一个在我的项目被创建一个build.xml文件。我将不得不手动创建这个或者我可以运行一个命令产生的呢?
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?
推荐答案
ADT插件不会生成一个Ant文件。
The ADT plugin doesn't generate an Ant file.
当你通过调用创建命令行一个新项目的机器人
命令将生成一个Ant文件的Android创建项目
。你可以创建一个示例项目,并复制的build.xml
, build.properties
和当地的.properties
从该目录中的文件。
The android
command will generate an Ant file when you create a new project from the command line by calling android create project
. You could create an example project and copy the build.xml
, build.properties
and local.properties
files from that directory.
另外,你可以直接从 $ ANDROID_HOME / tools / lib目录/ build.template $ C $复制
的build.xml
模板C>然后只需更改项目名称。
Alternatively, you can just copy the build.xml
template directly from $ANDROID_HOME/tools/lib/build.template
then just change the project name.
然后,只需创建一个 build.properties
文件—这就是你把任何Ant属性覆盖。
你也需要一个 local.properties
文件,但不检查到源头控制和mdash;这是你指定你的 $ ANDROID_HOME
通过设置 sdk.dir
属性目录。
Then just create a build.properties
file — it's where you place any Ant property overrides.
Also you need a local.properties
file, but don't check that into source control — this is where you specify your $ANDROID_HOME
directory by setting the sdk.dir
property.
这篇关于是否ADT插件自动创建一个Ant构建文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!