문서의 이전 판입니다!
AntUnit의 태스크들이 antlib:org.apache.ant.antunit
네임스페이스에 속한 상태이며, 이를 매번 직접 지정하여 호출한다.
// 파일이 존재하지 않음(assertFileDoesntExist)을 확인 ant.'antlib:org.apache.ant.antunit:assertFileDoesntExist'(file:'copytest1.tmp') ant.copy(file:'src/antunit.groovy', tofile:'copytest1.tmp') // 이제 파일이 존재함(assertFileExists)을 확인 ant.'antlib:org.apache.ant.antunit:assertFileExists'(file:'copytest1.tmp') ant.delete(file:'copytest1.tmp') ant.'antlib:org.apache.ant.antunit:assertFileDoesntExist'(file:'copytest1.tmp')