nAnt Deleting files older than 7 days old

后端 未结 2 1603
北海茫月
北海茫月 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:22

    What about something like:

    
        
    
    Delete backups before ${last.week}
    
        
            
        
    
    

    It seems to work for me :-)

提交回复
热议问题