Integration Of Ant With IDE Eclipse

text zoom

Now days the IDE's are very popular in development as this will solve many problems to develop and debug. The ANT is a powerful build tool which can be integrated with all the existing IDE's of java. Eclipse is widely used in the java development. Following are the steps for the configuration of ANT with eclipse.


Step 1:- Go to the Windows>> Preferences. A dialog is open in front of you.


Step 2:- Click on the Ant_home and again a small dialog is open.



Step 3:- Set the Ant_Home in the eclipse and you will see the library files are picked up by the ANT.


 


Creating the Ant file for the project:-


First off, in Eclipse, in the Navigator or Resource view, right click on the project name and choose New -> File. Create the build.xml file and start creating the project and task.


Running the Ant file :-



Right click on the build file and select Run As > > Ant Build. It will open the dialog for the task. choose the task and click on Run.


                    

Copyright © 2012 VisualBuilder. All rights reserved