2016-06-04 4 views

답변

2

그래서 최신 5를 제외한 모든 디렉토리를 삭제 하시겠습니까? allbutlast은 Ant (1.9.5)의 비교적 새로운 기능입니다.

<delete verbose="true"> 
    <allbutlast count="5"> 
     <sort> 
      <date/> 
      <dirset dir=""> 
      </dirset> 
     </sort> 
    </allbutlast> 
</delete>