Android Official technical document translator--ant task

Source: Internet
Author: User

This article is translated from the official Android technical document Ant Tasks ", the original address: Http://tools.android.com/tech-docs/ant-tasks.

Because it is to take time to translate, so this article I divided a few stages before translation, and the translation of my English side of the growth, so that the form inside the same sentence has several different translation methods.

This side is about ant, even though Android is now aggressively implementing Android Studio based on the Gradle build system, but with a lot of eclipse, it also translates the article.

This document is primarily a brief introduction to the ant task, which can be understood by the students who build the project with Ant.

Translation is not easy, reprint please indicate the source of CSDN blog:

http://blog.csdn.net/maosidiaoxian/article/details/44451007

Translation work time-consuming, if you think this article translation is OK, at the end there is a "top" word, hope that a lot of support, you understand me. If you have inappropriateness, please correct me. Thank you.


Ant TaskThis feature is in active development. Please check the Adt-devTo make recommendations on this.

Current custom Task List:
    • Aaptexectask
    • Aidlexectask
    • Apkbuildertask
    • Buildconfigtask
    • Dexexectask
    • Ifelsetask
    • Propertybyreplacetask
    • Renderscripttask
    • Signapktask
    • Xpathtask
    • Zipaligntask
New additions to the R20 version (partly replaced by Newsetuptask)
    • Checkenvtask
    • Computedependencytask
    • Computeprojectclasspathtask
    • Getemmafiltertask
    • Getlibrarylisttask
    • Gettargettask
    • Gettypetask
    • Manifestmergertask

Basic (abstract) tasks used by the main tasks above:
    • Buildtypedtask
    • Multifilestask
    • Singledependencytask
    • Singleinputoutputtask


Com.android.ant.CheckEnvTask:<checkenv>To simply check the current environment:
    • Ant version
    • The Platform-tools folder exists in the SDK
There are no property options.
Com.android.ant.GetTypeTask<gettype>Queries the item and returns its project type. The possible types are:
    • "App"
    • "Library"
    • "Test"
    • "Test-app"
Properties Describe Whether you must
Projecttypeout Name of the property used to save the project type Is

Com.android.ant.GetTargetTask<gettarget>Resolves the project's objectives and returns some of the goals that must be relied upon during the build process.
Property Describe Whether you must
Androidjarfileout Property name used to save the target of the project and the location of the Android.jar Is
Androidaidlfileout Property name used to save the location of the framework.aidl of the project's build target Is
Bootclasspathout The name of the property used to hold a path object that contains all the running jar files (Android.jar + and-on APIS) pathc Is
Targetapiout The name of the property that is used to save the project's build target API level. Is
Minsdkversionout The name of the property used to hold the application's minsdkversion value. Is

Com.android.ant.GetLibraryListTask<getlibs>Calculates the list of library items on which the project depends. It calculates all the direct and indirect dependencies and generates a list in a specific order.
Property Describe Whether you must
Libraryfolderpathout The property name is used to save a path object that contains all the library project folders.
It is sorted using the compiled order.
Is


Com.android.ant.ComputeDependencyTask<dependency>Calculates the dependency of the project. This task not only handles the details of the library project, but also collects and processes all the jar libraries required for the main project and the Library project. It will be processed using the dependency scenarios mentioned here.

Property Describe Whether you must
Libraryfolderpathout The property name is used to save a path object that contains all the library project folders.
It is sorted using the compiled order.
Is
Librarypackagesout The property name is used to save the package name for all library items.
Use semicolons to separate package names.
Is
Librarymanifestfilepathout The property name is used to save the path object that contains the manifest file for all libraries. Is
Libraryresfolderpathout The property name is used to hold a path object that contains the resource folder for all library items.
It is sorted using AAPT order. Its order is opposite to the libraryfolderpathout.
Is
Librarynativefolderpathout The property name is used to hold a path object that contains the local folder for all library items. Is
Jarlibrarypathout The property name is used to hold a path object that contains all the jar libraries needed for the build. Is
Targetapi The project's build target API level. Is
Verbose Level of detail for builds Whether

Other tasks will be introduced later.

Android Official technical document translator--ant task

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.