ant打包Web工程

阅读更多
build.properties文件内容如下:
project        = Tqla
version        = 1.1.1

build.compiler = modern
[color=green]#build.compiler = classic
#build.compiler = jikes[/color]

year           = 2012
debug          = on
optimize       = on
deprecation    = on

os             = windows
[color=green]# os             = linux[/color]
author         = Jambhala
email          = [email protected]
url            = www.shihuan.com.cn 
company        = shihuan


build.xml文件内容如下:


[color=brown]

[/color]

	
	
	
      
          
          
          
          
          
          
          
          
          
          
          
        
    	
    	
    	
    	
    	
          
          
        [color=brown][/color]
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
          
            [color=brown][/color]  
              
                 
            	
              
        
    	
    	
	  	
	  	
	  	
	  	
      
      
      
          
          
          
          
          
    	 
    	
    	
    	
    	
          
              
        
          
              
          
      
      
      
          
              
          
          
              
                
            	
              
          
      
    
	  
        [color=brown][/color]  
    
	
	
		
			[color=brown][/color]
			
				[color=brown][/color]
				
			
		
	

	
		[color=brown][/color]
	
	
      
        [color=brown][/color]  
          
              
            
        	
        		
        		
        		
        		
        		
        		
        		
        		
        		
        		
        		
        		
        	
          
      
	
	
		[color=brown][/color]
	
	
	
        
          
          
              
         
		
    
	
      
          
              
                
            	
              
         
    	
    	
    	
      



下面的代码仅供参考:
把几个任务串起来,弄一个default target

<target name="all">
	<antcall target="antjar" />
	<antcall target="antear" />
	<antcall target="antwar" />
        <antcall target="antzip" />
	<antcall target="javadoc" />
	<antcall target="clean" />
        <antcall target="publish" />
</target>



----------------------------------------------------------------------------------
下面是针对MyEclipse建立的Web工程打war包的build.xml脚本:













 
   
   
   
       


   
   
   
   
   
   


       
   

    
     
        
      

   
   
   
   
   
      
      
        
               
                 
           

             
               
           
           
 
       

       
       
 
 
 
 
   
 

     
        
      
      
      

   
 
 
     
   
             
       
       
       
 
     
 
   

   
     
     
         
             
               
           
           
 
       

   

   



 
  • ant打包Web工程_第1张图片
  • 大小: 27.5 KB
  • TestQuartz.rar (4.5 MB)
  • 下载次数: 79
  • build.properties和build.xml两个文件.rar (2.4 KB)
  • 下载次数: 58
  • ant打包Web工程_第2张图片
  • 大小: 12.5 KB
  • yywlbuild.rar (1.2 KB)
  • 下载次数: 14
  • 查看图片附件

你可能感兴趣的:(web)