How To Clean Subversion Directories 디렉토리를 청소하는 방법에 파괴
When you checkout a repository from subversion it creates a .svn directory (with subdirectories) for every directory (and subdirectory) checked out. 리포지 토리에서 체크 아웃 때 파괴이 만들어집니다. svn 디렉토리 (과 서브 디렉토리)에 모든 디렉터리 (및 하위 디렉토리) 체크 아웃합니다. The .svn directory contains information about the repository and files in the directory and allows you to run svn commands without having to authenticate yourself in future. the합니다. svn 디렉토리와 파일에 대한 정보가 포함되어 디렉토리에있는 리포지 토리를 사용하면 svn 명령을 실행하지 않고도 미래의 자기 자신을 인증합니다. However when you want to package the source code it becomes painful to remove them by hand. 그러나 패키지를하려고 할 때 그들의 소스 코드를 손으로를 제거하는 고통이된다. You can either use a build tool like ant and exclude the .svn directories or you can use my code to clean the directory of .svn junk. 중 하나를 사용하실 수있습니다 개미와 같은 빌드 도구를 제외합니다. svn 디렉터리 또는 내의 코드를 사용할 수있습니다 디렉토리에 청소를합니다. svn 정크합니다.
Download 다운로드 SVNClean here 여기에 svnclean . 합니다.
Usage: 사용법 :
java SVNClean [list of files or directories] 자바 svnclean [목록에서 해당 파일 또는 디렉토리]
The code runs on any java supported platform (tested on windows and linux). 모든 자바의 코드를 실행을 지원하는 플랫폼 (윈도우와 리눅스에서 테스트).
Use at your own risk. 의 사용에 따른 위험을 사용합니다. No warranty, implied or otherwise, is provided. 어떠한 보증도하지 않습니다 명시 적이든 묵시를 제공합니다.
Filed under 밑에 Headline News 헤드 라인 뉴스 , How To 하는 방법을 , Java Software 자바 소프트웨어 , Tech Note 기술 참고 사항 , Web 웹 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |




































June 16th, 2006 at 11:27 am 2006년 6월 16일에서 오전 11시 27분
’svn export’ is your friend. 'svn 수출'은 당신의 친구.
June 16th, 2006 at 12:50 pm 2006년 6월 16일에서 오후 12시 50분
Or, if you have 또는, 경우에는 rsync you can to this… 이하실 수있습니다…
rsync -C /path/to/source/ /path/to/destrsync - c / 경로 /로 / 소스 / / 경로 /로 / 도착The -C option excludes .svn directories on a copy. - c 옵션을 배제합니다. svn 디렉토리에 복사합니다.
June 18th, 2006 at 12:26 pm 2006년 6월 18일에서 오후 12시 26분
Thanks for the tips. 의 도움말을 주셔서 감사합니다.
September 16th, 2006 at 3:17 pm 2006년 9월 16일에서 오후 3시 17분
That java prog didn’t work for me, and I was too lazy to whip up a script. 자바 프로그램 가능한는 적합하지 않았던 나, 그리고 난 너무 게으름을 휘어 잡 스크립트를합니다. Neither did that rsync script. 나도 그런 rsync 스크립트를합니다. So, I created local svn repo and used import/export. 그래서 나는 현지 svn 저장소 작성 및 사용 가져오기 / 내보내기합니다.
% svnadmin create /tmp % svnadmin 만들기 / tmp
% svn import . % svn 수입합니다. file:////tmp tmp 파일을 :////
% svn export file:////tmp % svn 내보내기 파일 ://// tmp
March 6th, 2007 at 11:07 pm 2007년 3월 6일에서 오후 11시 7분
If you prefer an Ant-based solution to deleting hidden/read-only work directories, the ‘defaultexcludes’ option is your friend. 개미 - 기반 솔루션을 원하는 경우 삭제하는 숨겨진 / 읽기 -에서만 작동 디렉토리에있는 'defaultexcludes'옵션을 당신의 친구입니까합니다.
March 6th, 2007 at 11:19 pm 2007년 3월 6일에서 오후 11시 19분
Hm, that nuked my build.xml target tags, try this version… 흠, 내 build.xml이 핵 공격을 대상 태그,이 버전을 시도…
<target name=”clean-environment” depends=”clean-gen” <타겟 이름 = "클린 - 환경"달려 = "클린 - gen"
description=”Clean all Eclipse/Subversion environment files and directories”> 설명 = "청소의 모든 일식 / 파괴를 환경에 파일과 디렉터리">
<delete includeemptydirs=”true” failonerror=”false”> <delete includeemptydirs="true" failonerror="false">
<fileset dir=”${basedir}” defaultexcludes=”no”> <fileset dir="${basedir}" defaultexcludes="no">
<include name=”**/.svn/**” /> <include name="**/.svn/**" />
<include name=”**/.settings/**” /> <include name="**/.settings/**" />
<include name=”**/.classpath” /> <include name="**/.classpath" />
<include name=”**/.project” /> <include name="**/.project" />
<include name=”**/.tomcatplugin” /> <include name="**/.tomcatplugin" />
</fileset> </ 파일>
</delete> </ 삭제>
</target> </ 타겟>
August 2nd, 2007 at 1:51 pm 2007년 8월 2일에서 오후 1시 51분
This worked fine for me and was exactly what I wanted. 이 나를 위해 좋은 일을하고 싶었는 정확히합니다. I simply wanted to remove all the Subversion artifacts from a directory structure without having to actually have Subversion loaded or creating a bogus Ant target. 간단히 말해서 나는 당신을 파괴 싶었던 유물을 모두 제거의 디렉토리 구조를 파괴하지 않고도 실제로는이 문서가 적용되는 개미로드하거나 허위 작성합니다. This did the trick as expected. 이것은 그 트릭이 예상대로합니다.
Thanks! 감사합니다!
April 1st, 2008 at 7:15 am 2008년 4월 1일에서 오전 7시 15분
Change to root directory folder and type: 변경 내용을 루트 디렉토리 폴더 및 유형 :
find . find. -type d -name .svn -exec rm {} -R \; - 패 - 이름을 입력합니다. svn - 실행 rm () - 연구 \;
Just for linux! 만을위한 리눅스!