Use ant to automatically build and deploy Java Projects 1

Source: Internet
Author: User
Ant is a cross-platform component tool under the Apache Foundation. It can automatically build and deploy projects. In this article, we will familiarize readers with how to apply ant to Java projects and simplify the construction and deployment operations. I. Installation and configuration: Http://ant.apache.org/. in this document, download 1.7.0. Decompress the package to a directory (for example, E:/Apache-ant-1.7.0. Add the system environment variable ant_home, which points to the root directory after ant unzipping and is E:/Apache-ant-1.7.0 here. After installation and configuration, you can test whether ant is available. First, go to the ant bin directory and run the ant-version command. If the installation and configuration are successful, the ant version information is displayed, as shown in:

It can be seen from the above that the reader needs to enter the bin directory of ant when running the ant command. How can the system automatically find ant? In this case, you need to add the ant bin directory in the path of the system environment variable. After setting, you can enter the ant command in any directory (for example, C:/Documents and Settings/amigoxie directory) to obtain the running result of the command.

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.