File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to ANT

 
Gannarapu Rajesh
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to ANT.
I want to learn ANT.
suggest the best way to learn.
is there any nice tutorial for ant?

Thanks in advance,
Rajesh Gannarapu
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way I think is to look at an example build file with the Ant docs to hand. Look an an open source project (just grab something simple from Sourceforge) - most will use Ant and will include the build file. Small build files are relatively readable, even without much Ant knowledge. (Watch out for big projects like JBoss - projects like these tend to have expanded way beyond the limitations of Ant and use other products inc conjunction with it, or have defined their own custom tasks)

The most important thing to remember with Ant is to understand what you are trying to achieve with a build file. If you have a clear understanding of the steps in your build process, then translating these to an Ant build file is relatively trivial. If you don't have a clear understanding of the steps in your build process, sort this out before going anywhere near Ant.

There is also an Ant debugger available as an Eclipse plugin. This can be very useful to track what the more complex build files do.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an "hello world" ant build file here, which might help.

Also many FAQs with some suggestions for ant beginners.

http://bobcat.webappcabaret.net/javachina/faq/ant_01.htm
 
Hemant Agarwal
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also new to Ant.
I don't know why there is a tool like 'ANT'?
We can build our files by compiling the files manually?
What is the benefit of ANT?

Thanks

 
Pratik Lohia
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ANT does all these things by itself. All you need to do is script it once to tell what needs to be done. Thereafter ... till eternity ANT will automatically do all the tasks for you... till you tell it not to do . ANT, just does not compile files, but also does a lot more things like running external utilities, building jars and ears, firing SQL queries, deploying and starting applications, sending mails and a lot more. So an entire cycle of building to testing to reporting can be performed with ANT once the code has been checked in with just one command that invokes the ANT script.
 
Hemant Agarwal
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pratik,
Plz give me links for that

Thanks
 
Pratik Lohia
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://ant.apache.org/

Check out the manual here...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic