Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do clean and build in eclipse using Ant

Tags:

eclipse

build

ant

Is it possible to do clean and build a project using ant in eclipse

like image 461
Manu Avatar asked Apr 07 '10 06:04

Manu


2 Answers

In addition of the answer from Wing C. Chen, if you are looking for a way to interact with eclipse from ant, this may help you: Ant tasks provided by the platform.

There you can find some task to interact with the platform, like one to cause eclipse to do an incremental build.

like image 135
Andrea Polci Avatar answered Nov 08 '22 02:11

Andrea Polci


You can execute any ant "target" in eclipse. Open then the build.xml, click the "outline" view, and you will see the targets listed in green bubble from. Right-click the one that you would like to run, select "run as", and then "ant build". You should be able to run the target up already.

like image 36
Winston Chen Avatar answered Nov 08 '22 01:11

Winston Chen