CI_CD/ant
[ant] 변수 수정하기(propertyregex)
홍또~
2020. 7. 3. 11:21
ant를 사용하여 build.xml을 작성하다 보면 변수를 가공해야하는 일이 있다
그때 사용하면 좋은 기능이 propertyregex 이다 (ant contlib 필요)
대표적인 사용법은 아래와 같다
<propertyregex property="수정 후 변수"
input="수정 전 변수"
regexp="바꿀 문자"
replace="대체 문자"
casesensitive="false" />
추가적인 옵션은 아래의 링크에서 확인해보면 된다.
http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html