Run ant in eclipse

Source: Internet
Author: User

Ant support has been built in eclipse. Create a new build. xml file in the project. Double-click eclipse to open the edit file with anteditor. Right-click build. xml and run ant. In the displayed dialog box, you can set the call parameters, running directory, running target, class path, and attributes.

After the settings are complete, run. The output result is displayed in the output window, and the output result is linked to the editor. For example, for [delete] deleting 2 files from E:/Eclipse/workspace/testant, click [delete] to locate the corresponding Delete task in ant editor. After running it once, you can save the running settings in run> external tools, and then run it.

 

AntSet

There are many ant configuration parameters in WINDOW> preferences> ant.

One is "names", which specifies the XML file to be opened by ANT editor and the file to be opened by General XML editor. The default value is "build. xml", which can be set to names separated by commas, such as "build. xml" and "Dist. xml.

To use external tasks (see "ant advanced feature: use external tasks"), you need to set the classpath for ant runtime:

Use add jars or add folder to point to the dependent external class library.

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.