Java – How to generate build.xml for a new java project

antbuildeclipsejavaproject

I am learning about build.xml file for ant build.
I have a simple "Hello World" project in Eclipse.

Is there any way to generate a build.xml file in Eclipse for this project?

Thanks in Advance.

Best Answer

Yes - click on File -> Export -> General -> Ant Buildfiles and specify the file name, project, etc.