Android commend build. xml

Source: Internet
Author: User

Generally, when Android programs are developed, eclispe is selected for zookeeper, but eclispe does not generate the build required by ant at the same time when it establishes an Android-related project. XML, so before we put it on Hudson, we must first generate the corresponding build. XML.

Google has always been a treasure and does not allow us to build our own images. XML is so painful and difficult, the method is very simple, that is, when we create a project by command, we will also generate the build we need. XML, instructions can be used to test the establishment of general cases, and the establishment of complex cases

Example:

Android Create project -- Target 4 -- name yourprojectname -- path yourprojectpath -- activity startupactivity -- package yourpackgename

-- Target indicates that the androdi version is used during the upgrade.
-- Name indicates the case name.
-- Path indicates the stored path in the hosts file.
-- Activity indicates the starting activity.
-- Package Java package name: volume

If you want to generate an android test project example, for example:

Android create test-project-M projectpath-N yourtestprojectname-P yourtestprojectpath

-- M: the number of records to be merged
-- N indicates the case name
-- P zhongkui Case Study

After the preceding commands are executed, you can obtain their own build. xml files. However, you may have discovered that the content of these two build. xml files is exactly the same?
Are you kidding Google ?? The content of the build. properties proposal generated at the same time,
If you generate a test project, build. properties will have tested. Project. dir = yourprojectpath to specify where the project to be merged is located,
Let's look at this small change. He decided which target should be used by the user at the time and which of the following can be used by the user.
After production, do not forget to add build. xml and build. properties to the source. The above is the step for the production build file.

Buils. xml

Related Article

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.