Installing Ant Under Windows

I l @ ve RuBoard

Ant allows you to write a build script once and use it to rebuild and redeploy your distribution whenever you need to. Ant is especially well suited to Java and contains a number of specialized features intended specifically for the Java developer.

Downloading the Distribution

Point your browser to http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/ and select the binary zip file. Save the file to a known location.

Unpacking the Distribution

Open the saved file using a zip unarchiver and extract all the files, preferably to C:\(which will create a directory C:\jakarta-ant-1.4.1). Be sure to click Use Folder Names in the Extract dialog box, if it's offered .

Adding Ant to the Windows Path

Refer to the instructions appropriate for your operating system in the previous section "Installing JDK Under Windows." Using the same procedure that you used to add JDK to the PATH environment variable, add the following:

 ;C:\jakarta-ant-1.4.1\bin 

Reboot if you are running Windows 95 or 98.

Testing Ant

Open a command window by choosing Start, Program Files, Accessories. At the command prompt, type ant. You should see the following:

 C:\Documents and Settings\james>ant Buildfile: build.xml does not exist! Build failed 

This tells you that Ant is in place and that it couldn't find a build.xml file, which is the file that Ant uses to determine what actions need to take place to build or deploy an application.

I l @ ve RuBoard


MySQL and JSP Web Applications. Data-Driven Programming Using Tomcat and MySQL
MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL
ISBN: 0672323095
EAN: 2147483647
Year: 2002
Pages: 203
Authors: James Turner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net