[[PageOutline]]
= Benten ビルド方法
== jar ファイル
* プラグイン開発用のEclipseを用意します。
* 必要な情報は、[http://sourceforge.jp/projects/benten/svn/view/trunk/benten.cat.build.script/doc/readme.txt?view=markup&revision=1443&root=benten readme.txt]に記載されています。
* 一括して用意できる[http://www.vector.co.jp/soft/winnt/prog/se475903.html BlancoEclipseRcpDistribution]を使用することをお勧めします。
* ソースコードをSVNリポジトリからチェックアウトします。
* Subversiveでリポジトリロケーションに"http://svn.sourceforge.jp/svnroot/benten/"を指定し、trunk配下の各プロジェクトを選択して、チェックアウトします。
* ANT_HOME が無いって言われる場合は...
* ワークスペースの設定にクラスパス変数を追加する必要があります。
* メニューの ウィンドウ > 設定 > Java > ビルド・パス > クラスパス変数 > 新規ボタン を押して下記を設定します。
* 名前: ANT_HOME
* パス: C:/Program Files/eclipse/plugins/org.apache.ant_x.x.x.vxxxxxxxxxx (例)
* Bentenのビルド
* ビルドは、benten.cat.build.scriptプロジェクトのbuild/build.xmlをant実行します。
* ※build/build.propertiesの内容を、使用環境に応じたフォルダ構成に修正する必要があります。詳細は[http://sourceforge.jp/projects/benten/svn/view/trunk/benten.cat.build.script/doc/readme.txt?view=markup&revision=1443&root=benten readme.txt]にも記載されています。
* EclipseからBentenを実行/デバッグ実行
* 実行/デバッグ実行は、benten.coreプロジェクトのplugin.xmlを開き、概要タブでEclipseアプリケーションの起動、もしくはEclipseアプリケーションをデバッグ・モードで起動をクリックします。
== Windows EXE 形式
* インストーラー作成環境の構築
* Windows XP で作業実施 (他環境は未確認)
* [http://www.jrsoftware.org/isinfo.php Inno Setup を入手]
* isetup-5.3.10-unicode.exe のダウンロードを想定
* Inno Setup のインストール
* インストーラーそのものの構築
* プロジェクト「benten.cat.build.script」のチェックアウト
* ★同様の手順を「build.setup.win32.ext」向けに実施します。
* build.setup.win32 ディレクトリ内の build.xml を実行
* 不足ファイルは随時追加
* benteninst.iss を実行 (拡張子で関連づいた InnoSetup が起動する)
* コンパイル(ビルド)の実施
* これでインストーラーが作成できます。
== jar ファイル : Ubuntu 10.04 版
ビルド用 Eclipse の準備
{{{ code bash
# ディレクトリ準備
sudo mkdir /opt/eclipse-jee-galileo-SR2
sudo chown <ユーザ名> /opt/eclipse-jee-galileo-SR2/
}}}
{{{ code bash
# インストール
tar xf eclipse-jee-galileo-SR2-linux-gtk.tar.gz -C /opt/eclipse-jee-galileo-SR2
}}}
{{{ code bash
# インストールされたことの確認 (実行による確認ですが、原則として この UI は利用せずバッチからの起動となります)
/usr/local/lib/eclipse-jee-galileo-SR2/eclipse/eclipse
}}}
{{{ code diff
Eclipse JEE Galileo SR2 でビルドする場合のパッチ。
Index: build/build.xml
===================================================================
--- build/build.xml (revision 2631)
+++ build/build.xml (working copy)
@@ -2,9 +2,9 @@
<project name="benten.build" default="build">
<!--sets the path of the properties file-->
<property file="build.properties" />
- <property name="pdeBuildPluginVersion" value="3.4.0.v20080604" />
- <property name="equinoxLauncherPluginVersion" value="1.0.101.R34x_v20081125" />
-
+ <property name="pdeBuildPluginVersion" value="3.5.101.v20100104" />
+ <property name="equinoxLauncherPluginVersion" value="1.0.201.R35x_v20090715" />
+
<target name="clean">
<delete dir="${buildDirectory}" />
</target>
Index: build/build.properties
===================================================================
--- build/build.properties (revision 2631)
+++ build/build.properties (working copy)
@@ -86,7 +86,7 @@
# The directory into which the build elements are fetched and where
# the build takes place.
-buildDirectory=c:/temp/build
+buildDirectory=/tmp/benten.build
# Type of build. Used in naming the build output. Typically this value is
# one of I, N, M, S, ...
@@ -113,7 +113,7 @@
# baselocation must the an working Eclipse installation with the delta pack
base=c:/
-baseLocation=${base}/program Files/blancoEclipseRcpDistribution-20090512-build
+baseLocation=/usr/local/lib/eclipse-jee-galileo-SR2/eclipse
#Os/Ws/Arch/nl of the eclipse specified by baseLocation
baseos=win32
basews=win32
}}}
= リンク
* [FrontPage トップページに戻る]