VisualBuilder
  Home > Java > Tutorials > Introduction - Ant Tutorial
Tell a friend
Link to us
Total Members
      Members: 84709
     
Sitemap Forum Chat
Home
Ant Tutorial Home
1 . Introduction
2 . Library Dependencies
3 . Necessary Elements Of the Build File-1
4 . Neccessary Elements Of the Build File-2
5 . Writing Your First Buildfile
6 . Integration Of Ant With IDE Eclipse
7 . Command-line Arguments
8 . ANT Command Options Summary
9 . Properties in ANT
10 . Example to print the existing properties using ANT.
11 . Adding lib files in Classpath from the Ant Script
12 . Creating and deleting the directories from Ant Scripts.
13 . Working with Files.
14 . Example to Create the Jar files
15 . Creating the War files using the ANT Scripts
16 . Ear Command in Ant
17 . Generics
18 . Annotation Processing Tool ( APT )
19 . More Enhancements in Tiger.
20 . Java Compiler (javac) and Debugger
21 . Java Web Start in J2SE 5.0
22 . General Deployment Enhancements in J2SE 5.0
 
 
Java Home
Java Members (27610)
Java Member Articles ( 40 )
Java Discussion (273)
Java Q & A ( 153 )
- Java Ask Question
- Java Questions
- Java Unanswered Questions
Java Resources
Java Source Code (1095)
Java Articles (550)
Java Blogs (118)
Java Jobs (797)
Java Components (84)
Java Books (169)
Java Websites (126)
Java News (103)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Java ant Tutorial
 Introduction
  << Java Ant Tutorial Home Next: Library Dependencies >>

Ant is a Java-based build tool from the Apache project that was originally bundled with early versions of Tomcat. Its creator had become dissatisfied with make as a way of building Tomcat from source and developed a tool to make his life easier. Ant was designed to fix the problems with make described previously and so mirrored the portability aims of Java. The build tools helps the programmers to build their complex application and place the files in the desired location with less effort. The Ant is different tool then make , gnumake , nmake , jam build tool as Instead of a model where it is extended with shell-based commands, Ant is extended using Java classes. Instead of writing shell commands, the configuration files are XML-based, calling out a target tree where various tasks get executed. Each task is run by an object that implements a particular Task interface in ant.


Note:- Latest version of Ant is available on Ant web page http://ant.apache.org/ .


System Requirements


Ant can be used with so many operating systems as it is written in java. All you need to have is only the JVM to run Ant scripts in your environments.


 


Note:- To build and use Ant, you must have a JAXP-compliant XML parser installed and available on your classpath, such as Xerces as the configuration file is a XML file and ant needs to parse the file for the tasks


 


There are many directories in the ANT bundle. But only the bin and lib directories are required to run Ant. To install Ant, choose a directory and copy the distribution files there. This directory will be known as ANT_HOME. For running the ant command we also have to set the path parameter with ANT_HOME/bin. The commands are as follows for different environments.


 


Windows and OS/2


set ANT_HOME=c:\ant


set JAVA_HOME=c:\jdk-1.5.0.05


set PATH=%PATH%;%ANT_HOME%\bin


 


Linux/Unix (bash)

export ANT_HOME=/usr/local/ant


export JAVA_HOME=/usr/local/jdk-1.5.0.05


export PATH=${PATH}:${ANT_HOME}/bin


 


Linux/Unix (csh)

setenv ANT_HOME /usr/local/ant


setenv JAVA_HOME /usr/local/jdk/jdk-1.5.0.05


set path=( $path $ANT_HOME/bin )


 


  << Java Ant Tutorial Home Next: Library Dependencies >>
Java Ant Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
Skype vs. sipcall
blackberry accessories
desktop fax service
EV SSL Certificates
Video Surveillance
 
 
ADVERTISEMENT
Partner List
Code Project
ASP Alliance
More
 
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising