민서네집

[eclipse] SVN에서 binarary로 인식할 파일명을 어떻게 설정하나? 본문

프로그래밍

[eclipse] SVN에서 binarary로 인식할 파일명을 어떻게 설정하나?

브라이언7 2016. 9. 23. 11:02

eclipse에서 SVN으로 프로젝트를 commit 하고 나서, 다른 사람이 eclipse에서 그 프로젝트를 check out할 때 도중에 에러가 나면서 실패한다.


eclipse에서 내가 다시 그 프로젝트를 checkout 했더니 잘 되었다.


eclipse SVN 플러그인 종류가 다르거나 버젼이 내 eclipse와는 다른지 import 하는 메뉴가 나랑 조금 달랐다.

( 정확히 말하면 eclipse 기반의 STS 이다. )


binary file 을 text 파일로 인식하면서 에러가 나는 의심이 들었다.

( binary 파일로는 *.bam 파일과 *.bam.bi 파일이 있었음 )


SVN Repository에 binary로 인식할 파일명을 어떻게 알려줄 수 있을까?

인터넷에서 검색해 보니 


참고

http://kuroikuma.tistory.com/77

http://stackoverflow.com/questions/2049743/stop-eclipse-subversive-from-setting-svnmime-type-to-text-plain-on-initial-comm

http://stackoverflow.com/questions/73797/how-do-i-tell-subversion-to-treat-a-file-as-a-binary-file

http://stackoverflow.com/questions/458609/how-to-explicity-tell-svn-to-treat-a-file-as-text-not-binary


svn:mime-type 'application/octet-stream' 파일명

위와 같은 형식으로 줘야 한다는데, Eclipse에서는 어떻게 하면 될까?

아래 그림과 같이 Eclipse에서 Repository에서 set property 설정했더니 그 하위에 있는 모든 폴더와 파일들의 속성이 바뀌어버렸다. (eclipse에서 변경된 파일처럼 상태가 보임)
그래서 프로젝트 전체를 다시 commit을 했고, 다른 사람 eclipse에서도 checkout 이 정상적으로 되었다.



Comments