Chapter 7. Eclipse and Ant
Introduction
Eclipse is a great Java IDE, and it excels at enabling you to edit,
debug, share, compile, and run your code. However, advanced projects
can demand more from the build process. For example, you might want
to compile multiple files, copy your compiled files to a specific
location, create .jar files, delete previous
build files, and more.
All these things are possible with the well-known Ant build tool from Apache (see http://ant.apache.org/). Ant has a great deal of power built in. It enables you to automate the build process—compile, move, copy, and delete files, create and delete directories, and more. And now Ant comes built into Eclipse. If your project requires more than just compiling one or two files, this is the chapter for you.
Tip
This chapter discusses how to use Ant from Eclipse, but it doesn’t discuss how to use Ant in detail, which would take a book by itself. For more information on how to work with this tool, see Ant: The Definitive Guide (O’Reilly).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access