Java Glossary : Ant

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : A words : Ant.

Ant
An open-source Java-based Make tool. Javac does not need a make since it is capable of figuring out for itself what needs to be recompiled, however for reasons I don't yet understand Ant is very popular. Perhaps it is because people don't know how to feed Javac large collections of files to compile at once. Perhaps it is because it handles many of the peripheral chores to compilation to getting a build ready. Ant is multiplatform where batch files are not, making it better suited for team programming where developers may be using a variety of OSes.

Normally ANT just feeds all the source files to javac.exe, invoking it only once. If you use the DEPEND function it will delete some class files before doing this to force Java to recompile based on dependencies. I have heard conflicting reports on whether it will catch all the recompilations needed. Adding JAVAMAKE to ANT makes is slightly smarter, but it still cannot be relied on to catch all the files that need recompiling. It is conservative, and recompiles even more than it needs to when a static final changes. Whenever you change static finals in ANT, you had better recompile the universe.

book_coverAnt: The Definitive Guide
0-596-00184-3
By Jesse E. Tilly, Eric M. Burke
an O'Reilly book.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1951.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/ant.html J:\mindprod\jgloss\ant.html