|
Last update : July 6 2002
Doc for : v1.3
Cactusについて
Cactus とは
ニュース
変更履歴
特徴/開発状況
目標
ロードマップ/ToDo
協力者
協力者募集
Cactus ユーザ
テスト済環境 ...
ライセンス
ダウンロード
ダウンロード
ドキュメント
Cactus の仕組み
さぁ始めよう
モック対コンテナ
Javadocs
└Javadocs
よくある質問
Howto ガイド
クラスパス Howto
設定 Howto
アップグレードHowto
テストケース Howto
セキュリティHowto
Ant Howto
HttpUnit Howto
サンプル Howto
EJB Howto
IDE Howto
JUnitEE Howto
サポート
Bug DB
メーリングリスト
その他
名前の由来
ロゴコンテスト
参考文献
アクセス状況
└WebAlizer
開発者向け
CVS
コード規約
ビルドの結果
|
| Cactus のインストール |
Cactus のインストールというものは本来存在しないものです。
Cactus はアプリケーションではなく、フレームワークだからです。
しかしながら、 あなたは Cactus
をどのように作業環境に統合していくかを理解する必要があります。
ですので、Cactus のインストールとは単に、どの jar
ファイルをどこに配置し、どの設定ファイルを編集して、
どこに置けばよいのかを理解するという意味です。
ここで解説するのは、そういうことです。
There is not really an installation of Cactus per see, as Cactus is
not an application but a framework. However you do need to understand
how it integrates in your working environment. Thus, installing Cactus
simply means to understand what jars need to be put where and what are
the configuration files you need to have and edit. This is discussed
below.
あなたが Cactus を使いたいと思うであろう環境には、
主に 2つの種類があります。
There are 2 kinds of environments in which you may want to use
Cactus, mainly :
-
IDE の中で、
within your IDE,
-
Antを使って、
コマンド・ラインから。
from the command line, using
Ant
 |
通常、この 2つの環境は相互補完的なものです。
日々の開発には IDE を使い、
IDE の中からテキパキ Cactus のテストを実行しながら、
日々のビルドは Ant によって実行(Cactus テストの実行を含む)する、
というのが良い戦略です。
Usually, these 2 environments are complementary. A good strategy is
to use an IDE to increase day to day productivity, run quickly the
Cactus tests in the IDE and use Ant to perform the
(continuous) builds (including running the Cactus tests).
|
|
| 事前に必要なもの |
Cactus テストを実行するには、
以下のソフトウェアが事前にインストールされている必要があります:
In order to run Cactus tests you need to have the following
software already installed on your system :
-
Java バーチャル・マシン
Java 1.2 またはそれ以上と互換性のある JVM が必要です。
全てのServlet エンジンは JVM を必要としますので、
もしあなたが現在 Servlet を使用しているのであれば、
既に JVM はインストールされています。
A Java 1.2 or greater compatible virtual machine must be present. Note
that all servlet engines require a JVM to run so if you are already
using servlets you already have one installed.
-
Servlet エンジン
Cactus テストの実行には Servlet 2.x と互換性のある
servlet エンジン(ただし x >= 2.2)が必要です。
A Servlet 2.x compliant servlet engine (where x >= 2.2) for running
your Cactus tests must be present.
-
Ant (オプション)
Ant は Cactus をコマンド・ラインから実行したい、
あるいはテストの実行を自動化したい場合にのみ必要です。
もし Ant を使用したい場合には、この導入ガイドを読み終わった後に
Ant Howto を読んでください。
Ant is only needed if you are working from the command line or if you
wish to automate the execution of tests. If you wish to use Ant,
make sure that you read the
Ant Howto after you finish
reading this introductory guide.
|
| Cactus のファイル |
ここでは、
(あなたが使おうとしている J2EE API 用の)Cactus の配布物が既に
ダウンロード され、
[cactus root]
ディレクトリに解凍されているものと仮定します。
At this point, you should have
downloaded a Cactus distribution
(for the J2EE API you intend to use) and unzipped it in a
[cactus root] directory.
Cactus を構成する jar ファイルは
[cactus root]/libに存在します。すなわち:
The jars making up Cactus can be found in
[cactus root]/lib. Namely, they are :
-
cactus.jar :
最も大切な jar ファイルで、フレームワーク・クラスを含んでいます。
このファイルは [cactus root]/lib にあります。
cactus.jar : the main jar,
contains the framework classes. You can find this jar in
[cactus root]/lib.
-
cactus-ant.jar :
Ant との統合を容易にするためのカスタム Ant タスクを含む
jar ファイルです。これは Cactus テストを Ant
によって自動化する場合にのみ必要です。
Cactus と Ant の統合に関する詳細は、
Ant Howto
チュートリアルを参照してください。
このファイルも [cactus root]/lib にあります。
cactus-ant.jar : a jar which
contains some custom Ant tasks to help integrate easily with Ant.
This is only needed if you wish to use Ant for automating the
execution of Cactus tests. For more information on how to integrate
Cactus with Ant, see the
Ant Howto tutorial. You also
find this jar in [cactus root]/lib.
-
httpclient.jar :
Cactus はクッキーの処理を Jakarta Commons の HttpClient
フレームワークに依存しています。
httpclient.jar : Cactus is relying
on the Jakarta Commons HttpClient framework for Cookie handling.
-
junit.jar :
Cactus は JUnit を拡張するものですので、
JUnit の jar ファイルが必要です。
junit.jar : Cactus extends JUnit and
thus needs the JUnit jar.
-
aspectjrt.jar :
Cactus はいくつかのタスク(メソッドの開始、終了をログに出力する、
設定を確認するなど)を実行するのに
AspectJ を使用しています。
aspectjrt.jar : Cactus uses
AspectJ for performing
several tasks (logging entries and exit of methods, checking
configuration, etc).
-
log4j.jar(optional) :
Cactus は全ての内部ログに log4j を使用しています。
この jar ファイルはオプションであり、
もしクラス・パスに含まれていなければ、ログは出力されません。
log4j.jar(optional) : Cactus uses
Log4j for performing all internal logging. This jar is optional and if
you don't put in the classpaths, no logs will be generated.
Cactus の設定ファイルについては、
Configuration Howto
チュートリアルで解説されています。
The Cactus configuration files are described in the
Configuration Howto tutorial.
|
|
|