Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Wednesday, October 16, 2013

Auto build project with ant in Eclipse

Who needs Eclipse if there is a shell?

In Eclipse, go to Project's properties and add a new builder of type ant.

On tab Main provide:
  • Build file
  • Base Directory
  • Desired arguments that will be passed to ant ( -Dproperty=value style)

On tab Targets provide ant tasks for targets Auto Build, After a Clean.

Now you can just change sources and save the source file, 
Eclipse will execute "Auto Build" target right away.