Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Ant 101

DZone's Guide to

Ant 101

·
Free Resource
// Ah Ant. How I love thee, how much better a build tool
// than my ex build tool Make.
//
// This is my current starting build.xml Ant script for any
// Java project. It specifies my usual directories, it will
// build source code, make a Jar, build a War, clean up build
// products, create Javadoc, and even run unit tests.
//
// Notice that I use the JReleaseInfo library to automatically
// generate a Java class that contains version numbers, build
// numbers, etc. Be sure to put the Jar from that library in
// the library directory to get that feature:
// http://jreleaseinfo.sourceforge.net/



  

  
    
   
        
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
        
    
        
    

        
    
        
    
        
    

        
        
        
    
        
    
        
    
        
    
        
    

        
    
            
     
        
    

        
    
        
    
            
     
        
    

        
    
            
     
            
     
        
    
    
   

    
   
        
    
            
     
        
    

        
    
        
    
            
     
                
      
                
      
                
      
                
      
                
      
                
      
            
     
        
    
    
   

    
   
        
    
    
   

    
   
        
    
            
     
            
     
                
      
                
      
            
     
            
     
                
      
            
     
            
     
                
      
            
     
        
    
    
   

    
   
        
    
    
   

    
   
        
    
    
   

    
   
        
    
        
    
        
    
        
    
        
    
        
    
    
   

    
   
        
    
            
     
        
    

        
    

        
    
            
     
            
     
                
      
                   
       
                   
       
                
      
            
     
            
     
                
      
                
      
            
     
        
    

        
    

        
    
            
     
                
      
            
     
            
     
        
    
  	
        
      	
    
   

  
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}