Eclipse - exporting to Ant buildfile
I discovered yet another useful feature of Eclipse- exporting your project to Ant file. It works just as other export options (Right click project name >> Export >> Ant Buildfile). Eclipse will create build.xml and build-user.xml. Build.xml will come with basic ant targets such as clean, compile. All you need to do is add your "custom" targets into build-user.xml and you're all set to use build.xml. Really useful feature that reduces the creation of build scripts. Thanks to Eclipse!
3 Comments:
did u try this with J2EE projects? I can't seem to get war or ear targets. I ve wtp.
anyone? any ideas?
We use WTP 1.1 as well. You are right that you can't get war and ear targets in the build file automatically created by Eclipse. However; since there is "export to war" functionality, I believe we may see a functionality to create automatic build.xml for web applications pretty soon.
Post a Comment
<< Home