• Showing Page History #63095
  • Showing Page History #61503

Benten ビルド方法

jar ファイル

  • プラグイン開発用のEclipseを用意します。
  • ソースコードをSVNリポジトリからチェックアウトします。
  • 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の内容を、使用環境に応じたフォルダ構成に修正する必要があります。詳細はreadme.txtにも記載されています。
  • EclipseからBentenを実行/デバッグ実行
    • 実行/デバッグ実行は、benten.coreプロジェクトのplugin.xmlを開き、概要タブでEclipseアプリケーションの起動、もしくはEclipseアプリケーションをデバッグ・モードで起動をクリックします。

Windows EXE 形式

  • インストーラー作成環境の構築
    • Windows XP で作業実施 (他環境は未確認)
    • 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 の準備

  1. # ディレクトリ準備
  2. sudo mkdir eclipse-jee-galileo-SR2
  3. sudo chown <ユーザ名> eclipse-jee-galileo-SR2/

  1. # インストール
  2. tar xvf eclipse-jee-galileo-SR2-linux-gtk.tar.gz -C /usr/local/lib/eclipse-jee-galileo-SR2
  1. # インストールされたことの確認 (実行による確認ですが、原則として この UI は利用せずバッチからの起動となります)
  2. /usr/local/lib/eclipse-jee-galileo-SR2/eclipse/eclipse
  1. Eclipse JEE Galileo SR2 でビルドする場合のパッチ。
  2. Index: build/build.xml
  3. ===================================================================
  4. --- build/build.xml (revision 2631)
  5. +++ build/build.xml (working copy)
  6. @@ -2,9 +2,9 @@
  7. <project name="benten.build" default="build">
  8. <!--sets the path of the properties file-->
  9. <property file="build.properties" />
  10. - <property name="pdeBuildPluginVersion" value="3.4.0.v20080604" />
  11. - <property name="equinoxLauncherPluginVersion" value="1.0.101.R34x_v20081125" />
  12. -
  13. + <property name="pdeBuildPluginVersion" value="3.5.101.v20100104" />
  14. + <property name="equinoxLauncherPluginVersion" value="1.0.201.R35x_v20090715" />
  15. +
  16. <target name="clean">
  17. <delete dir="${buildDirectory}" />
  18. </target>
  19. Index: build/build.properties
  20. ===================================================================
  21. --- build/build.properties (revision 2631)
  22. +++ build/build.properties (working copy)
  23. @@ -86,7 +86,7 @@
  24. # The directory into which the build elements are fetched and where
  25. # the build takes place.
  26. -buildDirectory=c:/temp/build
  27. +buildDirectory=/tmp/benten.build
  28. # Type of build. Used in naming the build output. Typically this value is
  29. # one of I, N, M, S, ...
  30. @@ -113,7 +113,7 @@
  31. # baselocation must the an working Eclipse installation with the delta pack
  32. base=c:/
  33. -baseLocation=${base}/program Files/blancoEclipseRcpDistribution-20090512-build
  34. +baseLocation=/usr/local/lib/eclipse-jee-galileo-SR2/eclipse
  35. #Os/Ws/Arch/nl of the eclipse specified by baseLocation
  36. baseos=win32
  37. basews=win32

リンク