ant filtering - fail if property not set

前端 未结 5 1735
后悔当初
后悔当初 2020-12-15 16:47

I\'ve got a ant build.xml that uses the task to copy a variety of xml files. It uses filtering to merge in properties from a bu

5条回答
  •  孤城傲影
    2020-12-15 17:27

    Since Ant 1.6.2 condition can also be nested inside fail.

    The following macro makes it easy to conditionally check multiple properties.

    
        
        
        
        
        
            
                
                    
                        
                        
                            
                            
                        
                        
                            
                            
                        
                    
                
            
        
    
    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    
    

提交回复
热议问题