svnno****@sourc*****
svnno****@sourc*****
2008年 2月 19日 (火) 21:02:22 JST
Revision: 30
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=30
Author: karma
Date: 2008-02-19 21:02:21 +0900 (Tue, 19 Feb 2008)
Log Message:
-----------
1st translate.
Modified Paths:
--------------
jetspeed-2-trans/trunk/ja/xdocs/jetspeed-eclipse.xml
-------------- next part --------------
Modified: jetspeed-2-trans/trunk/ja/xdocs/jetspeed-eclipse.xml
===================================================================
--- jetspeed-2-trans/trunk/ja/xdocs/jetspeed-eclipse.xml 2008-01-17 07:15:15 UTC (rev 29)
+++ jetspeed-2-trans/trunk/ja/xdocs/jetspeed-eclipse.xml 2008-02-19 12:02:21 UTC (rev 30)
@@ -18,16 +18,20 @@
<document>
<properties>
<title>
- Developing Jetspeed with Eclipse
+ [Developing Jetspeed with Eclipse] Eclipse を使った Jetspeed の開発
</title>
- <subtitle>How-to for Building and Debugging Jetspeed with Eclipse</subtitle>
+ <subtitle>[How-to for Building and Debugging Jetspeed with Eclipse] Eclipse を使った Jetspeed のビルドとデバッグの方法</subtitle>
<authors>
<person name="David Sean Taylor" email="taylo****@apach*****" />
</authors>
+ <translators>
+ <person name="加藤泰文" email="karma****@prog*****" />
+ </translators>
</properties>
<body>
- <section name="Developing with Eclipse">
- <subsection name="The Eclipse Classpath">
+ <section name="[Developing with Eclipse] Eclipse を使った開発">
+ <subsection name="[The Eclipse Classpath] Eclipse のクラスパス">
+ <div class="original">
<p>
Compiling, debugging, external dependencies, source code completion, searching, auto imports, all rely on a properly configured classpath.
When you first create a project, a .classpath file is created in the projects root directory.
@@ -35,30 +39,56 @@
We have already configured the relative source directories for you.
Eclipse provides a .classpath GUI editor from the Project->Properties menu option.
</p>
+ </div>
+ <p>
+ コンパイル、デバッグ、外部の依存関係、ソースコード補完、検索、自動インポート、これらは全て適切に設定されたクラスパスに依存します。プロジェクトを最初に作ったとき、.classpath ファイルが、プロジェクトのルートディレクトリに作られます。Jetspeed のソースと一緒に、我々は Eclipse でそのまま使える .classpath ファイルを提供しています。Eclipse には、プロジェクト -> プロパティメニューオプションに、.classpath GUI エディタがあります。
+ </p>
</subsection>
- <subsection name="JAR files and the Maven repository">
+ <subsection name="[JAR files and the Maven repository] JAR ファイルと Maven リポジトリ">
+ <div class="original">
<p>
Jetspeed requires quite a few JAR files to be able to compile.
The .classpath file that comes with Jetspeed is setup to get its JAR files out of a local Maven repository.
You can see all the JAR file dependencies from Eclipse. Go to Project->Properties->Java Build Path->Libraries.
Notice all the JAR files are configured as VARIABLE library entries.
Take one example:
+ </p>
+ </div>
+ <p>
+ Jetspeed のコンパイルには、かなりの数の JAR ファイルが必要です。Jetspeed 付属の .classpath ファイルは、ローカルの Maven リポジトリの JAR ファイルを使うように設定します。Eclipse の、「プロジェクト -> プロパティ -> Java ビルドパス -> ライブラリ」から、全ての JAR ファイルの依存関係をみることが出来ます。全ての JAR ファイルは、変数を使ったライブラリエントリとして設定されるのに注意してください。一つ例を示すと、
+ </p>
+ <div class="original">
<source>
MAVEN_REPO/commons-lang/jars/commons-lang-2.0.jar
- </source>
+ </source>
+ </div>
+ <source>
+ MAVEN_REPO/commons-lang/jars/commons-lang-2.0.jar
+ </source>
+ <div class="original">
+ <p>
The Variable is portion is MAVEN_REPO.
The Extension portion is /commons-lang/jars/commons-lang-2.0.jar
Eclipse locates the JAR dependency from a Variable location root.
In order for this classpath to work correctly, the variable root is dependent on a Maven-1 local repository file structure.
</p>
+ </div>
<p>
+ この例の変数部分は MAVEN_REPO です。拡張された部分は /commons-lang/jars/commons-lang-2.0.jar です。Eclipse は、変数が表す場所から JAR ファイルの依存関係を探します。クラスパスが正しく働くために、変数のルートは Maven 1 のローカルリポジトリのファイル構造に依存します。
+ </p>
+ <div class="original">
+ <p>
To configure the MAVEN_REPO variable, go to Window->Preferences->Java->Build Path->Classpath Variables,
click on New, and define a new variable named MAVEN_REPO, pointing it out the root of your local Maven-1 repository,
- usually someplace like your $$HOME/.maven/repository
+ usually someplace like your $HOME/.maven/repository
</p>
+ </div>
+ <p>
+ MAVEN_REPO 変数は、「ウィンドウ -> 設定 -> Java -> ビルドパス -> クラスパス変数」で、「新規」を押して、MAVEN_REPO という変数を定義し、あなたのローカル Maven 1 リポジトリを指定してください。普通は、$$HOME/.maven/repository というような場所です。
+ </p>
</subsection>
</section>
- <section name="Debugging with Eclipse">
+ <section name="[Debugging with Eclipse] Eclipse を使ったデバッグ">
</section>
</body>
</document>