To make building Velocity easy and consistant, we require a Jakarta project
called Ant version 1.3 or
higher to perform the build process. We assume that you have followed
Ant's installation instructions and have it properly installed. It's not
difficult, and I think that you will find it an excellent addition to
your programmer's toolbox.
Velocity を簡単に一貫性をもたせてビルドするには、Apache のプロジェクトである
Ant のバージョン 1.3 以降が必要です。
[訳注:上の訳注のとおり、URLが変わっています。このリンクは変更済みです]
Ant のインストール指示に従って正しくそれをインストールしていることを前提にします。
インストールも難しくありませんし、素晴らしいプログラミングツールだと思います。
In each case below, it is assumed that you were successful in getting
the distribution from CVS or as a nightly build, and with the latter,
were successful in unpacking. Also, it is assumed that you are starting
in the 'jakarta-velocity' directory, the root of the distribution tree.
All directory references will be relative to 'jakarta-velocity'.
以下の各手順では、あなたが CVS から、もしくは夜間ビルドとして配布の取得に
成功していて、夜間ビルドの場合は、解凍に成功していることを前提にしています。
そして、「jakarta-velocity」ディレクトリ(配布ツリーのルート)
で作業を行っていると仮定しています。
ディレクトリ参照はすべて「jakarta-velocity」の相対パスです。
Change to the build directory (cd
build). Then, to build the jar file, simply type:
build ディレクトリに移動してください (cd build)。
それから、jarファイルをビルドするには、単に以下のようにタイプしてください。
Executing this script will create a bin directory
within the Velocity distribution directory. The bin
directory will contain the compiled class files (inside a
classes directory) as well as a
velocity-XX.jar file, where XX is the current
version number. Be sure to update your classpath to include Velocity's
.jar file.
このスクリプトを実行すると、Velocity 配布ディレクトリの中に
bin ディレクトリが作成されます。
bin ディレクトリにはコンパイルされたクラスファイル
(classes ディレクトリ内にあります) と
velocity-XX.jar ファイル (XX は現在のバージョン番号)
が入っています。クラスパスを Velocity の .jar ファイル
を含めて更新したことを確認してください。
Note that to build any of the specific build targets, as detailed in
the developers guide, simply add
the target name to the command line. For example, to build the Javadoc
API documentation :
ビルドターゲット (開発者ガイドで詳述) の
いずれかをビルドするには、コマンドラインでターゲット名を加えるだけです。
例えば、Javadoc API ドキュメトをビルドするには以下のようにします。
Velocity should build 'out of the box', independent of your classpath.
If you get an error building Velocity, try a different nightly build (as
sometimes we make a mistake and the CVS at the time of the nightly
snapshot isn't complete) or refresh from CVS (you might have gotten a
CVS snapshot while a developer was checking things in.)
Velocity は、「独自に」、つまりクラスパスに依存せずにビルドすべきです。
Velocity のビルドでエラーが出た場合には、別の夜間ビルドを試してみるか
(時にはミスがあって、夜間スナップショットの時点で必要なものが CVS にそろってない
こともあります)、CVSから再取得してください
(開発者によるチェックイン中にCVS スナップショットを取得したのかもしれません)。
If the problems persist, do not hesitate to ask the Velocity community
via our mail lists. They can be found here. Please read
and understand the the guidelines for participating in any Jakarta mail
list.
問題がずっと解決しないようでしたら、迷わず、メーリングリストを通して Velocity
コミュニティで質問してください。
メーリングリストについてはここ
で情報を得られます。Jakarta メーリングリストに参加するためのガイドラインを
読んで理解してください。