13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.3 Obtaining and Installing Ant217His soluti<strong>on</strong> was Ant, which we will from now <strong>on</strong> refer to as ant. Whyant? Well, he suggests that it might be because ants are little things 2 that buildbig things. He has also suggested (in his preface to the O’Reilly book Ant: TheDefinitive Guide, Jesse Tilly and Eric Burke) that it might stand for “AnotherNeato Tool.” We’re inclined to put forth the former, but believe the latter.James Duncan Davids<strong>on</strong> wrote ant and c<strong>on</strong>tributed it to the Apacheproject, so it is Free Software. And it makes the problems cited above ratherpiffling. Through the rest of this chapter we will describe how.9.3OBTAINING AND INSTALLING ANTYou can obtain ant from the Apache Web site. 3 Which versi<strong>on</strong> you downloadwill depend <strong>on</strong> your system and your needs. There are stable releases and dailybuilds. Unless you have a compelling need for a feature not yet in a stable release,we would suggest you stick with the most recent stable release. As of thiswriting, that is versi<strong>on</strong> 1.5.1.If you are using RedHat, or another <strong>Linux</strong> distributi<strong>on</strong> that uses theRedHat Package Manager, rpm, then the simplest way to install would be todownload the RPMs linked from the Web site and install those:$ rpm -i ant-1.5.1-3jpp.noarch.rpmYou have two other opti<strong>on</strong>s besides the trusty old RPM method. First,you may download a binary tarball, a word often used for a compressed filecreated with the tar utility, or you may download and compile the antsource code.Let’s take these each in turn.9.3.1 Installing a Binary TarballBinary distributi<strong>on</strong>s of ant are available in .zip, .tar.gz, and .tar.bz2formats. Utilities are available for all of these formats for <strong>Linux</strong>, although you2. Not so little anymore. As of this writing, the head of the CVS tree for ant weighs in at justshy of 48MB, and there are 5,239 files in there! These totals include a lot of project documentati<strong>on</strong>,but even c<strong>on</strong>sidering <strong>on</strong>ly the src subdirectory, we are still looking at 18MB and1,687 files. It is probably incorrect to call ant a “little thing” these days.3. http://ant.apache.org/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!