2011년 12월 18일 일요일

RTC plain Java Client Lib 개발 환경 설정

https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup

Note: Some of the download archives (particularly the source and JUnit archives) have path lengths longer than 250 characters and cause trouble for some extractor tools on windows. One zip extractor tool that works is 7Zip.


Plain Java Development

Step 1: Downloads

Client for Eclipse IDE, Server 및 Plain Java Client Libraries 파일을 "All Downloads" 페이지에서 다운로드를 받습니다.

Step 2: Installation

  • $INSTALLDIR에 서버 압축을 풉니다
  • $INSTALLDIR/jazz/client/plainjava에 plain java client 압축을 풉니다.

Step 3: Hello World Client

The plain java client library includes a set of snippets which show how to use the basics like creating a work item, creating streams and delivering changes, and creating team and project areas. If you don't want to use the command line as shown in the README.TXT, you can use Rational Team Concert itself to run the snippets as follows:

  • Create a new Java project and in the wizard create the project from an existing directory. Select the directory into which you unzipped the Jazz Plain Java Client Libraries.
  • On the second page of the wizard, select the Add Jars... button and add all the jars from the client library install to the classpath of this new Java project.

The new project will have the snippets package and the snippets will compile against the jars. You can then start the server and follow the instructions in the snippets/README.TXT file for adding the test user and running the snippets.
This will provide an easy setup, but it's hard to browse the source code since the source is packaged as plug-in source packages. As a result, there is an alternate setup which will allow browsing the source directly for the plain java client. For regular Eclipse plug-in development, the source packaging is 100% compatible.

댓글 없음:

댓글 쓰기