I am able to build the ant file in eclipse. How to run the ant application through eclipse.
Thanks.
I am able to build the ant file in eclipse. How to run the ant application through eclipse.
Thanks.
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
Two ways of doing that:
public static void main(String... args)
method. So just run this class (right-click on the class, "Run as > Java Application".target
that will run your main Java class, and then run this target through Ant Eclipse plugin.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.