NetBeans Platform にはクラスタという考えがあります。NetBeans Developer FAQ の What is a module cluster? にはこう書いてあります。

What is a Cluster?
Most of all, cluster is a compatibility unit. It is set of modules that is developed by the same group of people, build and release at once.
Most of the reasoning that lead to creation of the concept can be found at our Installation Structure document.

モジュールスイートプロジェクトのプロパティーダイアログでライブラリカテゴリを開くと以下のようにクラスタが見えます。これらはちょうど NetBeans のインストールディレクトリ以下のフォルダと同じですよね。



これは NetBeans IDE 5.5 Beta2 の日本語版 のものですが、NetBeans IDE は NetBeans Platform の platform6、その上に IDE の機能としての ide7、エンタープライズ機能の enterprise3 、NetBeans 5.5 のリリース特化した nb5.5 などのクラスタの集まりと言えると思います。クラスタはモジュールの集まり、といえますね。

「ツール」>「モジュールマネージャー」では個々のモジュールやカテゴリごとに有効にしたり無効したりできます。クラスタにも先ほどの FAQ にあった Installation Structure にはクラスタ単位で有効にしたり無効にしたりして起動する方法が書いてあります。--clusters にクラスタを書いていけばいいみたいですね。

最初に何もつけないで起動してみましょう。--userdir は必ずつける必要があるようです。

E:\nb55beta>platform6\lib\nbexec.exe --userdir e:\tmp\nbuserdir

これは NetBeans Platform だけのアプリケーションを起動するはずです。

次に nb5.5 クラスタを指定してみましょう。

E:\nb55beta>platform6\lib\nbexec.exe --clusters nb5.5 --userdire:\tmp\nbuserdir

なるほど、今度は開始画面が表示されました。nb5.5 は NetBeans 5.5 リリース用の開始画面、ブランディング、アップデートセンターなどのモジュールが入ったクラスタですね。

ide7 と nb5.5 を指定してしてみます。

E:\nb55beta>platform6\lib\nbexec.exe --clusters ide7;nb5.5 --userdire:\tmp\nbuserdir

これでほぼ普段使っている NetBeans 5.5 IDE と同じになったのはではないでしょうかね。enterprise3 は指定していないのでエンタープライズ機能は有効になってないはずです。
Comments:

Post a Comment:
Comments are closed for this entry.

This blog copyright 2009 by katakai