<?xml version="1.0" encoding="Shift_JIS"?>

<!DOCTYPE document SYSTEM "./dtd/document-v10.dtd">

<document>
  <header>
    <title>Antのインストール/Installing Ant</title>
    <authors>
      <person name="Vincent Massol" email="vmassol@apache.org"/>
    </authors>
    <translators><person name="漆島賢二"/></translators>
  </header>

  <body>

    <s1 title="序文/Forewords">

      <note>
        <strong>You need to have a good understanding of Ant before
        reading this tutorial. If you don't, I suggest you read the
        <link href="http://jakarta.apache.org/ant/manual/index.html">Ant
        User Manual</link> first</strong>.
      </note>
      <note>
        <strong>このチュートリアルを読む前に、Ant についての深い知識が必要です。
	そうでない場合、あらかじめ
	<link href="http://jakarta.apache.org/ant/manual/index.html">Ant
        ユーザーマニュアル</link>を読むことをお勧めします。</strong>
      </note>

      <p>
        This tutorial explains how to install Ant properly to be able to
        run the Sample application provided with the Cactus distribution and
        also build the Cactus distribution from the sources.
      </p>
      <p>
	本チュートリアルでは Cactus ディストリビューションに付属のサンプルアプリケーションを正しく実行できるよう
	Ant をインストールする方法、および、、
	ソースから Cactus ディストリビューションをビルドする方法についても説明します。
      </p>

    </s1>

    <s1 title="Cactus で必要なAntのタスク/Ant tasks needed by Cactus">

      <p>
        Cactus uses the following optional tasks of Ant :
      </p>
      <p>
        Cactus は、以下の Ant のオプションタスクを利用しています :
      </p>
      <ul>
        <li>
          The <strong><code>stylebook</code></strong> task : it is used to
          build the Cactus web site and Cactus documentation. The Stylebook
          version required by the Cactus build is
          the Stylebook 1.0b3 for Xalan2 (named
          <code>stylebook-1.0-b3_xalan-2.jar</code>) which needs the Xalan 2.0
          jar and the Xerces jar. <em>The stylebook task is not used by
          the Cactus Sample application build process, so it is only needed
          if you're building from the Cactus sources</em>. This task is
          normally found in the <code>optional.jar</code> Ant jar.
        </li>
        <li>
          <strong><code>stylebook</code></strong> タスク :
	  これは Cactus ウェブサイトと Cactus のドキュメントを生成するのに使われています。
	  Cactus のビルドに必要な stylebook タスクのバージョンは、
	  Stylebook 1.0b3 for Xalan2 
          (<code>stylebook-1.0-b3_xalan-2.jar</code>というファイル名です)。
          これには Xalan 2.0 jar および Xerces jar アーカイブが必要です。
          <em>stylebook タスクは Cactus サンプルアプリケーションのビルドには使われていません。
	  ですから、Cactus のソースからビルドする時にのみ必要となります。</em>
	  このタスクは通常 <code>optional.jar</code>という Ant の
	  jar アーカイブの中にあります。         
        </li>
        <li>
          The <strong><code>junit</code></strong> task : it is used to run
          the unit tests of Cactus itself and the Cactus unit tests of the
          Sample application. This task is
          normally found in the <code>optional.jar</code> Ant jar.
        </li>
        <li>
          <strong><code>junit</code></strong> タスク : 
	  Cactus 自身のユニットテスト、および、
	  サンプルアプリケーションの Cactus ユニットテストを行うのに使われます。
	  このタスクは通常 <code>optional.jar</code>という Ant の
	  jar アーカイブの中にあります。         
        </li>
        <li>
          The Cactus Sample application uses some Ant custom tasks provided
          by Cactus in the <code>cactus-ant.jar</code> jar file (
          found in the <code>lib/</code> directory where you unpacked the
          Cactus distribution).
        </li>
        <li>
          Cactus サンプルアプリケーションでは、
          <code>cactus-ant.jar</code> jar ファイルの中にある
          Cactus で提供された、幾つかの Ant のカスタムタスクを使っています。
        </li>
        <li>
          The <strong><code>checkstyle</code></strong> task : it is used only
          to buidl Cactus from the sources (i.e. not needed for building the
          Cactus sample application). The version of
          <link href="http://checkstyle.sf.net">Checkstyle</link> used is 2.2+.
        </li>
        <li>
          <strong><code>checkstyle</code></strong> タスク : 
	  これは Cactus をソースからビルドする時にのみ使われます。
	  (即ち、Cactus サンプルアプリケーションをビルドするには必要ありません))
	  使われている
          <link href="http://checkstyle.sf.net">Checkstyle</link>
	  のバージョンは 2.2+ です。
        </li>
      </ul>

      <p>
        In order to simplify the installation of Ant and the gathering of
        the required Ant tasks as described above, we provide a
        prepackaged zip containing everything needed. This is available from
        the <link href="downloads.html">downloads</link> section.
      </p>
      <p>
        Ant のインストール、および、上述の必要な Ant タスクの設定を簡単にするために、
	必要な全てのファイルをあらかじめパッケージしたZIPファイルを提供しています。
	これは、
        <link href="downloads.html">ダウンロード</link>の節にあります。
      </p>

    </s1>

    <s1 title="Windows での Ant のインストール/Installing Ant on Windows systems">

      <p>
        Follow the steps below to install Ant :
      </p>
      <p>
        Ant をインストールするには以下の手順に従ってください :
      </p>
      <ol>
        <li>
          Download Jakarta Ant
          (<code>jakarta-ant-&lt;version&gt;-bin.zip</code>) from
          <link href="http://jakarta.apache.org/ant/index.html">here</link>. I
          recommend version 1.4.1 or above. Alternatively you can download the
          prepackaged Ant version, as mentioned above.
        </li>
        <li>
          <link href="http://jakarta.apache.org/ant/index.html">ここ</link>より
	  Jakarta Ant(<code>jakarta-ant-&lt;version&gt;-bin.zip</code>)をダウンロードします。
	  バージョン 1.4.1 以上を推奨します。
	  代りに、先に述べた、あらかじめパッケージ化されたバージョンのAntをダウンロードしても構いません。
        </li>
        <li>
          Unzip it in a directory. Let's call this directory
          <code>antroot</code>,
        </li>
        <li>
          これを任意のディレクトリに解凍します。
	  これを <code>antroot</code> ディレクトリとしましょう。
        </li>
        <li>
          Create an environment variable named <code>ANT_HOME</code> that
          points to the <code>antroot</code> directory,
        </li>
        <li>
	  <code>antroot</code> ディレクトリを参照するような
	  <code>ANT_HOME</code> という名前の環境変数を作成します。
        </li>
        <li>
          Modify the <code>PATH</code> environment variable to include the
          <code>%ANT_HOME%\bin</code> directory (so that you'll be able to type
          <code>ant</code> in a DOS shell, in whatever directory and it will
          call the <code>%ANT_HOME%\bin\ant.bat</code> script,
        </li>
        <li>
          環境変数<code>PATH</code>に、
	  <code>%ANT_HOME%\bin</code>ディレクトリを加えます。
	  (そうすると、どのディレクトリにいても<code>ant</code>と打てば、
	  <code>%ANT_HOME%\bin\ant.bat</code> スクリプトが呼び出されます。)
        </li>
        <li>
          Download the Ant optional task jar
          (<code>jakarta-ant-&lt;version&gt;-optional.jar</code>) from
          <link href="http://jakarta.apache.org/ant/index.html">here</link>
          and put it in <code>%ANT_HOME%\lib</code>. <em>Note that this step
          is needed only if you haven't downloaded the prepackaged zip</em>,
        </li>
        <li>
	  Ant のオプショナルタスクのjarアーカイブ
	  (<code>jakarta-ant-&lt;version&gt;-optional.jar</code>)を、
	  <link href="http://jakarta.apache.org/ant/index.html">ここ</link>よりダウンロードし、
	  <code>%ANT_HOME%\lib</code>に置きます。
	  <em>このステップは、あらかじめパッケージ化されたZIPをダウンロードしていない場合のみ必要になります。</em>
        </li>
        <li>
          If you haven't downloaded the prepackaged Ant zip, you'll need to
          download the Stylebook 1.0b3 for Xalan 2 jar, the latest
          <link href="http://xml.apache.org/xalan-j/">Xalan</link>, the latest
          <link href="http://xml.apache.org/xerces-j">Xerces</link>, the
          latest <link href="http://junit.org">JUnit</link> and the latest
          <link href="http://checkstyle.sf.net">Checkstyle</link> jars. You'll
          also need to ensure that you use a JAXP 1.1 parser. You can download
          one (crimson) from
          <link href="http://java.sun.com/xml/download.html">here</link>. Put
          all these jars in <code>%ANT_HOME%\lib</code>.
        </li>
        <li>
          あらかじめパッケージ化された Ant の ZIP ファイルをダウンロードしていない場合、
	  Stylebook 1.0b3 for Xalan 2 jar、
	  最新の <link href="http://xml.apache.org/xalan-j/">Xalan</link>、
	  最新の<link href="http://xml.apache.org/xerces-j">Xerces</link>、
	  最新の<link href="http://junit.org">JUnit</link>、
	  および最新の<link href="http://checkstyle.sf.net">Checkstyle</link>
	  jar アーカイブをダウンロードしなければなりません。
	  さらに、JAXP 1.1 パーザーを使っているか確認する必要があります。
	  その一つ (crimson) は
	  <link href="http://java.sun.com/xml/download.html">ここ</link>からダウンロード可能です。
	  これらの jar アーカイブを<code>%ANT_HOME%\lib</code>に置きます。
        </li>
      </ol>

      <note>
        You should ensure that the Ant optional jar that you download contains
        the &lt;stylebook&gt; and &lt;junit&gt; tasks. Alternatively you can
        download the prepackaged Ant zip as mentionned above.
      </note>
      <note>
 	&lt;stylebook&gt; 、&lt;junit&gt; タスクが Ant のオプションの jar アーカイブに含まれているか確認してください。
	あるいは、先に述べた通り、あらかじめパッケージにそれらが入った Ant の ZIP ファイルをダウンロードすることもできます。
      </note>

    </s1>

  </body>
</document>
