nAnt Deleting files older than 7 days old

后端 未结 2 1606
北海茫月
北海茫月 2021-02-09 14:33

I would like to create a target that cleans log files older than 7 days old in a specific folder. I get an error when I try to put in a \"date\" element inside a fileset. How ca

2条回答
  •  一整个雨季
    2021-02-09 15:34

    I don't see any documentation for using the "date" element. You might consider something like this:

    
        
    
    

    And then reference that fileset later in a loop that checks the file date and deletes:

    
        
            
        
        
            
                
            
        
    
    

提交回复
热议问题