android开发教程(六)——环境搭建之工程管理工具ant

目录


现在java工程的管理工具常用的有:

  1. ant:apache的一个用于描述编译文件和编译目录的工具
  2. eclipse:是一个图形化的集成开发环境(IDE)。


ant 常用命令:

ant clean
Cleans the project. If you include the all target before clean ( ant all clean), other projects are also cleaned. For instance if you clean a test project, the tested project is also cleaned.
ant debug
Builds a debug package. Works on application, library, and test projects and compiles  dependencies as  needed.
ant emma debug
Builds a test project while building the tested project with instrumentation turned on.  This is used to run tests with code coverage enabled.
ant release
Builds a release package.
ant instrument  
Builds an instrumented debug package. This is generally called automatically when building a  test project with code coverage enabled (with the emma  target)
ant <build_target> install
Builds and installs a package. Using install by itself fails.
ant installd
Installs an already compiled debug package. This fails if the .apk is not  already built.
ant installr
Installs an already compiled release package. This fails if the .apk is not  already built.
ant installt
Installs an already compiled test package. Also installs the .apk of the  tested application. This fails if the .apk is not already built.
ant installi
Installs an already compiled instrumented package. This is generally not used manually as  it's called when installing a test package. This fails if the .apk is not already  built.
ant test
Runs the tests (for test projects). The tested and test .apk files must be   previously installed.
ant debug installt test
Builds a test project and the tested project, installs both .apk files, and  runs the tests.
ant emma debug install test
Builds a test project and the tested project, installs both .apk files, and  runs the tests with code coverage enabled.


参考:http://www.cnblogs.com/lxs-android/archive/2013/01/15/2861822.html



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值