Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
21Activity
0 of .
Results for:
No results containing your search query
P. 1
Ant

Ant

Ratings: (0)|Views: 305|Likes:
Published by Raghavendiran J M
Definitive Guide to ANT
Definitive Guide to ANT

More info:

Published by: Raghavendiran J M on Mar 23, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/24/2010

pdf

text

original

 
Complete Build Management for Java
Ant
The Denitive Guide
 Jesse Tilly & Eric M. Burke
Foreword by James Duncan Davidson
 
Ant
The Definitive Guide
 Jesse Tilly and Eric M. Burke
Foreword by James Duncan Davidson
Beijing
Cambridge
Farnham
Köln
Paris
Sebastopol
Taipei
Tokyo
 
This is the Title of the Book, eMatter EditionCopyright © 2002 O’Reilly & Associates, Inc. All rights reserved.
1
Chapter 1
CHAPTER 1
Ant Jumpstart
It is likely that you have already downloaded and installed Ant and are ready to seean example of how it works. If so, then this chapter is for you. Here, we walkthrough a very basic buildfile example, followed by a full description of Ant’s com-mand-line options. If you prefer to walk through the step-by-step installation proce-dure first, you might want to skip ahead to Chapter 2 and then come back to thismaterial.We do not attempt to explain every detail of the buildfile in this chapter. For a morecomprehensive example, see Chapter 3.
Files and Directories
For our example, we start with the directory and file structure shown in Figure 1-1.The shaded boxes represent files, and the unshaded boxes represent directories.
You can download this example from this book’s web page, located at
http://www.oreilly.com/catalog/anttdg/ 
.
The Ant buildfile,
build.xml
, exists in the project base directory. This is typical,although you are free to use other filenames or put the buildfile somewhere else. The
src
directory contains the Java source code organized into an ordinary package struc-ture. For the most part, the content of the source files is not important. However, wewant to point out that
PersonTest.java
is a unit test that will be excluded from thegenerated JAR file.Our sample buildfile causes Ant to create the directory tree and files shown inside theshaded, dashed block in Figure 1-2. It also compiles the Java source code, creates
oreilly.jar
, and provides a “clean” target to remove all generated files and directories.Now let’s look at the buildfile that makes this possible.

Activity (21)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
gdskumar liked this
gear123n liked this
gear123n liked this
enoch_praveen liked this
sudheera4 liked this
sudheera4 liked this
costons liked this
Aristatle liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->