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