본문 바로가기

프로그램/ant

ANT에서 SVN 사용하는 방법 확인

반응형

ANT에서 SVN 사용하는 방법 확인


ANT에서 SVN을 처리하기 위해서는 ANT 확장한 LIB가 추가로 필요함


주로 2가지가 사용되는것으로 보임

- SVNANT

SUBVERSION 이 클라이언트 쪽에 설치되어 있어야 한다고 하는데 그건 아닌 것 같음


- SVNKIT

상업적 사용인 경우 라이센스를 구매해야 하는 것 같음



SVNANT

SUBVERSION 버젼에 따라 사용해야 하는 버젼이 다른 것 같음

SVNANT 1.0 => 1.3.x

SVNANT 1.1 => 1.4.x

SVNANT 1.2 => 1.5.x

SVNANT 1.3 => 1.6.x


다운로드

- URL : http://subclipse.tigris.org/svnant.html

셋팅

1. ANT_HOME 을 환경변수로 저장

2. LIB를 ANT_HOME/LIB 에 복사

3. build.xml 작성

4. checkout 수행


문법

<svnSetting 

id="svn.setting"

username="${svn.user.id}"

password="${svn.user.pw}"

svnkit="true"

javahl="false"

/>


<target name="update.svn">

<svn refid="svn.setting">

<update dir="${dep.root.dir}/${svn.rep.wms}" recurse="true" />

<update dir="${dep.root.dir}/${svn.rep.tms}" recurse="true" />

<update dir="${dep.root.dir}/${svn.rep.adm}" recurse="true" />

</svn>

</target>


<target name="checkout.svn">

<delete dir="${dep.root.dir}" />

<mkdir dir="${dep.root.dir}" />

<svn refid="svn.setting">

<checkout url="${svn.rep.url}/${svn.rep.wms}" destPath="${dep.root.dir}/${svn.rep.wms}" />

<checkout url="${svn.rep.url}/${svn.rep.tms}" destPath="${dep.root.dir}/${svn.rep.tms}" />

<checkout url="${svn.rep.url}/${svn.rep.adm}" destPath="${dep.root.dir}/${svn.rep.adm}" />

</svn>

</target>





* URL

- SVNANT

http://layered.tistory.com/entry/SVNANT-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-ANT%EC%97%90%EC%84%9C-SVN%EC%9D%84-%EC%BB%A8%ED%8A%B8%EB%A1%A4%ED%95%98%EA%B8%B0


http://junebarq.blogspot.kr/2013/07/svnant.html


- SVNKIT

https://svnkit.com/download.php

http://emflant.tistory.com/109