Do I have a way to check the existence of a directory in Ant (not a file)?

前端 未结 6 1774
离开以前
离开以前 2020-12-04 15:10

How do I check for the existence of a folder using Ant?

We can check the existence of a file, but can we do the same for a folder as well?

6条回答
  •  情深已故
    2020-12-04 15:35

    Here's my solution, which doesn't require setting properties and using targets with 'if' or 'unless':

    Macro:

    
        
        
            
                
                    
                        
                    
                
            
        
    
    

    Usage:

    
    

提交回复
热议问题