How to check if directory exists before deleting it, using ANT?

前端 未结 7 1868
星月不相逢
星月不相逢 2021-02-01 14:43

Using ANT, how can i make sure that directory exists before attempting to remove it?

As part of my current clean task, i



        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 15:30

    Nice and clean solution below: Using ant-contribs.jar

    When using this solution, be sure to put the following line on top

    
    
    

提交回复
热议问题