Java ant ivy tutorial

Ref

ant tutorial
ivy tutorial
repository

projects folder

build -classes -jar
src -package -java file
lib */.jar

cmmand lines

ant -p 
ant resolve 
ant compile jar run 
ant junit   #run junit test

build.xml



    

    
    
    

     
    
    
        
    


    
        
    

    
        
        
    

    
        
        
            
                
            
        
    

    
    

    
        
            
                
                
            
        
    

    
        
            
                
                
            

            
                
            
        
    
    

    


ivy.xml



    
    
        
        
        
        
        

    

说明:
1.project folder下包含build.xml, ivy.xml文件
2.样例build.xml中有ivy dependencies, 含junit测试, external library
3.替换main-class value
4.ivy.xml中加repository,见repository

你可能感兴趣的:(Java ant ivy tutorial)