tags:

views:

28

answers:

3

I am able to build the ant file in eclipse. How to run the ant application through eclipse.

Thanks.

+1  A: 

To run an Ant script from within Eclipse, add the xml file to your workspace. If you open its context menu, you should see a choice "Run Ant...".

via: http://dev.eclipse.org/newslists/news.eclipse.tools/msg18883.html

gulbrandr
A: 

Two ways of doing that:

  1. There is a main class where you have defined a public static void main(String... args) method. So just run this class (right-click on the class, "Run as > Java Application".
  2. Define an Ant target that will run your main Java class, and then run this target through Ant Eclipse plugin.
romaintaz
A: 

I mostly drag and drop Ant files onto the Ant View (Ctrl+3, type 'ant'). From there, I run the default target by double-clicking the file in the view, or other targets by expanding the file in the view.

Fabian Steeg