2012年11月7日水曜日

Add-on on Windows platform

Addon Managerを使うと簡単にOFBizに機能やパッチの追加/削除ができます。Neogia Add-onをWindows上で使用します。もともとUnix系での使用を想定しているため、Windowsでは別途GNU patch、diffが必要になります。

必要なものは
  1. Add-on Manager (http://code.google.com/a/apache-extras.org/p/ofbiz-adm/downloads/list)
  2. patch.exe, diff.exe (http://gnuwin32.sourceforge.net/)
  3. todos.exe (http://www.thefreecountry.com/tofrodos/index.shtml)

準備
  1. C:\gnuwin32\binフォルダを作成して、ダウンロードしたファイルを格納します。zipは展開します。
  2. フォルダにpatch.batファイルを次の内容で作成します。
  3. @ECHO OFF
    todos %3
    todos %4
    C:\gnuwin32\bin\patch.exe %1 %2 %3 %4

  4. フォルダにdiff.batファイルを次の内容で作成します。
  5. @ECHO OFF
    todos %2
    todos %3
    C:\gnuwin32\bin\diff.exe %1 %2 %3

  6. フォルダにadm.batファイルを次の内容で作成します。
  7. @ECHO OFF
    java C:\gnuwin32\bin\addonmanager.jar %*

  8. システムのプロパティでシステム環境変数PATHに上記のパスを追加します。

実行
たとえばlanguagePackアドオンをインストールする場合、コマンドプロンプトから次のコマンドでインストールします。
    C:\gnuwin32\bin> adm install languagePack-0.1.1-v11.04.01.zip
インストール済アドオンのアンインストール
    C:\gnuwin32\bin> adm uninstall languagePack
インストール済アドオンの一覧表示
    C:\gnuwin32\bin> adm list


Using Add-on Manager on Windows
  1. Download and Add-on Manager (http://code.google.com/a/apache-extras.org/p/ofbiz-adm/downloads/list)
  2. Download patch.exe, diff.exe (http://gnuwin32.sourceforge.net/)
  3. Make a directory, for example C:\gnuwin32\bin, and extract downloaded zip files in it. And copy jar file also in it.
  4. Create patch.bat file into the directory and edit like this.
  5. @ECHO OFF
    todos %3
    todos %4
    C:\gnuwin32\bin\patch.exe %1 %2 %3 %4

  6. Create diff.bat file into the directory and edit like this.
  7. @ECHO OFF
    todos %2
    todos %3
    C:\gnuwin32\bin\diff.exe %1 %2 %3

  8. Create adm.bat file into the directory and edit like this.
  9. @ECHO OFF
    java C:\gnuwin32\bin\addonmanager.jar %*

  10. Set environment variable PATH.
  11. For example. To install languagePack Addon, exec command line, adm install languagePack-0.1.1-v11.04.01.zip

Links
Neogia Add-on Manager: http://neogia.org/wiki/index.php/Add-on_Manager
Neogia Add-on: http://neogia.org/wiki/index.php/OFBiz_add-on
Add-ons: http://addons.neogia.org/
Apache-extra: http://code.google.com/a/apache-extras.org/p/ofbiz-adm/
Apache-extra wiki (about how to install etc.) http://code.google.com/a/apache-extras.org/p/ofbiz-adm/w/list


2012.11.07 created.
2012.11.24 modified.

0 件のコメント:

コメントを投稿