Apache Ant Learning Note (3): Using Apache ant in Eclipse

Source: Internet
Author: User

Using Apache ant in Eclipse is simple, because eclipse itself integrates Apache Ant. Here is a Hello world.

1. Create a project test, as follows:

2. Create a Build.xml file below the project root, and eclipse will automatically identify and mark it as the Apache ant build file, as follows:

3. Open Build.xml, when there is no content in the file, you need to write the build file according to your own needs

4. Preparation of the building document, briefly prepared as follows:

5. Open the outline view, which shows the element structure of the Build.xml file in this view, as shown below:

6. In the outline view, select a target element node, right click on it, click Ant Build, and the selected target will be executed as follows:

7. The results of the execution will be output in the console view as follows:

Apache Ant Learning Note (3): Using Apache ant in Eclipse

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.