티스토리 툴바

Service 만들기Service 만들기

Posted at 2012/04/12 09:59 | Posted in Windows

Windows Server 가 부팅 될때마다 Subversion 서버를 띄우고 싶었는데, 아래처럼 Services 를 생성하는 방식으로 해결했다.

sc create "@ SVN" binPath= "C:\Subversion\bin\svnserve.exe --service --root D:\SVN\Repository" DisplayName= "Subversion Server" depend= tcpip start= auto


sc description "@ SVN" "SVN Server / 버젼 1.6.16 (r1073529)"


상세 명령은 다음과 같다.

설명:

        레지스트리 및 서비스 데이터베이스에 서비스 항목을 만듭니다.

사용법:

        sc <서버>create [서비스 이름] [binPath= ] <옵션1> <옵션2>...


옵션:

참고: 옵션 이름은 등호(=)를 포함합니다.

      등호와 값 사이에는 공백이 한 칸 있어야 합니다.

 type= <own|share|interact|kernel|filesys|rec>

       (default = own)

 start= <boot|system|auto|demand|disabled>

       (default = demand)

 error= <normal|severe|critical|ignore>

       (default = normal)

 binPath= <BinaryPathName>

 group= <LoadOrderGroup>

 tag= <yes|no>

 depend= <종속성(슬래시(/)로 구분)>

 obj= <AccountName|ObjectName>

       (default = LocalSystem)

 DisplayName= <표시 이름>

 password= <암호>


Subversion 의 core 서비스만 운영한다면 위 방법이 제일 가볍겠지만, 윈도우 환경에서 운영을 한다면 VisualSVN 을 추천.

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기

Eclipse Plugin 수동 설치 및 Java Decompiler Plugin 설치Eclipse Plugin 수동 설치 및 Java Decompiler Plugin 설치

Posted at 2012/03/21 16:08 | Posted in eclipse.
Eclipse Marketplace 에 없는 비인기(?) Plugin을 수동 설치를 통하여 사용하는 법을 터득해보자.

Eclipse 상단에 위치한 도움! 메뉴에서 Install new Software를 클릭하여 Install 창을 띄움.


친절하게 빨간색 사각형으로 강조해놓은 Add 버튼을 눌러 Eclipse plugin을 받아 올 수 있는 새로운 저장소를 추가함.
Name 에는 적당히 식별하기 쉽게 넣어주고, Location 부분엔 다음과 같이 넣어줌.

http://java.decompiler.free.fr/jd-eclipse/update




그리고 OK 버튼을 누르면 설치진행을 확인하는 창이 뜸.
체크를 하고 Next를 날려줌.
이후 절차는 예스맨이 되어 진행하면 됨.


설치가 완료되고 Eclipse를 재시작 하면 설치 끝.

그리고, OS에 따라 

Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)
를 설치해 줌

Eclipse Editor에서 Decompile하여 보고 싶은 class가 있다면
해당 class 또는 method 에 커서를 위치하고 F3 을 누르면 됨.

기본 설정으로 Decompile 하면 Editor 좌측에 원본소스의 라인번호가 나오는데,



이게 보기 싫을경우 상단 메뉴에서 Windows > Preferences > Java > Decompiler 
Display line number 옵션에서 체크를 해제하면 다음처럼 깨긋하게 나옴.


설치 하려는 plugin의 사이트를 가보면 update-site라는 이름으로 Location 부분에 넣어줄 url 이 있음.
이걸 잘 기억해서 위에서 진행한 절차대로 하면 됨.
( 대부분의 경우에는 있지만, 없는 경우도 간혹 있음 ) 

인기 Plugin인 경우 Marketplace에 바로바로 올라오지만, 그렇지 않은 경우엔 이렇게 수동으로 해줄 수 밖에 없음.

PS.
설치한 plugin은 JD-Eclipse이며 사이트 주소는  http://java.decompiler.free.fr/  임.
이미 설치한 plugin을 지우려면 상단 메뉴에서 Help >About Eclipse > Installation Details 에 들어간 후
삭제할 plugin 을 선택, 그리고 Uninstall을 하면 됨.
  1. 헤르메스의날개
    관리자의 승인을 기다리고 있는 댓글입니다

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기

svn 1.6 dump > 1.7 loadsvn 1.6 dump > 1.7 load

Posted at 2012/01/17 09:51 | Posted in 작업일지
사내 개발 서버 머신을 조만간 옮기게 되어서 subversion 으로 관리 되고 있는 소스들을 옮겨야 한다. 지금 사용하고 있는 버전은 1.6이며 2012년 01월 기준으로 가장 최신 버전이 1.7


1.7 릴리즈 노트를 보니까 http 프로토콜 성능향상(!) 등 꽤 많은 버그픽스, 개선이  되었기에 1.7 로 판올림 하기로 했으나, 걱정되는 문제는 1.6 에서 dump 된 파일을 1.6 에서 바르게 load 할 수 있을까 ?


결국 1.6 에서 dump 실행 후, 생성된 파일을 1.7 에서 load 해봤지만 계속 아래와 같은 오류가 나오면서 진행 불가능!

svnadmin: E125005: Invalid property value found in dumpstream; consider repairing the source or using --bypass-prop-validation while loading.

svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property



이 오류는 svnsync 명령으로 해결 할 수 있다고 한다.

Version 1.6.3

(22 Jun 2009, from /branches/1.6.x)

http://svn.apache.org/repos/asf/subversion/tags/1.6.3


 User-visible changes:

  * fix segfault in WC->URL copy (r37646, -56)

  * let 'svnadmin load' tolerate mergeinfo with "\r\n" (r37768)

  * make svnsync normalize svn:* props to LF line endings (issue #3404)

  * better integration with external merge tools (r36178)

  * return a friendly error message for 'svn diff' (r37735)

  * update dsvn.el for 1.6 (r37774)

  * don't allow setting of props on out-of-date dirs under neon (r37745)

  * improve BASH completion (r36450, -52, -70, -79, -538)

  * always show tree conflicts with 'svn st' (issue #3382)

  * improve correctness of 'svn mergeinfo' (issue #3126)

  * decrease the amount of memory needed for large commits (r37894, -6)

  * work around an APR buffer overflow seen by svnsync (r37622)

  * ra_svn clients now use TCP keep-alives if available (issue #3347)

  * improve 'svn merge' perf by reducing server contact (r37491, -593, -618)

  * stop propagating self-referential mergeinfo in reintegrate merges (r37931)

  * fix NLS detection where -liconv is required for bindtextdomain() (r37827)

  * don't delete unversioned files with 'rm --keep-local' (r38015, -17, -19)

  * bump apr and apr-util versions included in deps to latest. (r37941)

  * avoid temp file name collisions with ra_serf, ra_neon (r37972)

  * fixed: potential segfault with noop file merges (r37779)

  * fixed: incorrect output with 'svn blame -g' (r37719, -23, -41)

  * fixed: bindings don't load FS libs when module search enabled (issue #3413)

  * fixed: DAV RA layers not properly handling update/switch working copy

    directory to revision/place in which it doesn't exist (issue #3414)

  * fixed: potential abort() in the working copy library (r37857)

  * fixed: memory leak in hash reading functions (r37868, -979)



하지만  svnsync 명령어를 사용하지 않고 1.7 버전에서 새로 추가된 remote dump 명령어를 사용해 보기로 했다.
remote dump 명령을 사용하기 위해서 요구되는 subversion 버전이 최소 1.4 버전 이상이니, 저 녀석을 사용해보자!



1. 개발 서비 os가 엉망이라 네트웤 연결이 불가능. (역시나 관리 안되고있었다.)
그래서 해당 저장소와 사용된 subversion 을 압축해서 로컬 pc 복사. 그리고 데몬 모드 실행.

svnserve --daemon --root D:\_svn\SVN_Repository



2. v1.7 에서 추가된 svnrdump 명령어를 사용해서 dump 파일을 만들었다. (remote dump)

svnrdump dump svn://localhost > z:\from1.6.dump



3. subversion 1.7 에서 신규 저장소 생성.

svnadmin create z:\target



4. 생성된 저장소 hooks 디렉토리에  pre-revprop-change.bat 라는 이름으로 비어있는 배치 파일을 만든다. 그리고 subversion 1.7 을 데몬 모드로 실행 후, 2번에서 생성한 dump 파일을 URL 로 load  (굵은글씨가 subversion 1.7 URL)
--username / --password 명령어 뒤에는 subversion 계정 정보를 넣어주면 된다.

svnrdump load https://FEEEEL/svn/devecm  --username guest --password guest < z:\from1.6.dump

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기

1 2 3 4 5 ... 9