Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Running JUnit tests from Ant > Introducing and installing Ant

9.3. Introducing and installing Ant

One reason for Ant’s popularity is that it’s more than a tool: Ant is a framework for running code. In addition to using Ant to configure and launch a Java compiler, you can use it to copy files, run JUnit test suites, and create reports.

You configure Ant through an XML document called a build file, which is named build.xml by default. The Ant build file describes each task that you want to perform in your project. A build file can have several targets, or entry points, so that you can run a single target or chain several targets together. Let’s look at using Ant to run tests automatically as part of the build. If you don’t have Ant installed, see the following sidebar. For full details, consult the Ant manual (http://ant.apache.org/manual/).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint