From Eclipse, I found I can easily export an Ant build file for my project. It provides references to 3rd party libraries and some base targets. I\'m using
Right-click on an Eclipse project then "Export" then "General" then "Ant build files". I don't think it is possible to customise the output format though.