I created a Tomcat project called "jsflogin" inside the eclipse IDE, added an ant build file "build.xml" under "jsflogin". It seems the IDE does recognize it'a an ant build file since an ant icon appears together with the file. However, after I select "Project"->"Build project" or "Build all", the project is not built.
Project - Build would have eclipse build the project based on the way Project properties is configured. Looks like configure it with an ant builder, I haven't used that...check the help on ant builder.
From the eclipse help I searched on "run ant build" and one of the top hits is a common way to run ant buildfiles:
1. Select build.xml in one of the navigation views and choose Run As > Ant Build... from its context menu. (e.g. right click on build.xml)
2. A launch configuration dialog is opened on a launch configuration for this Ant buildfile.
3. This dialog allows the configuration of many aspects of the way an Ant buildfile is run, check the Targets tab which allows the selection of which Ant targets to run and their order if not planning to run the default.
4. Click Run.
5. The Ant buildfile is run, and the output is sent to the Console view.