Revision 4 as of 2010-09-20 00:43:19

Clear message
Locked History Actions

ivy/IvyDE/revdepexplorer

逆依存性エクスプローラ

紹介

一つのワークスペースの中の複数のプロジェクトで作業を行っており、 それらは、より大きなアプリケーション全体か一部であるとする。 そんなとき、複数のIvyファイルの中の依存のリビジョンを一つのリビジョンに同時に変更したい場合があるだろう。

あるいは、単に各のプロジェクトのそれぞれのモジュールでデスクリプタを調べることなしに、プロジェクトによって依存がどのように利用されているかを見たい場合があるかもしれない。

Reverse Dependency Explorerは依存ツリーをさかさまにし、organization, module, revisionを調査し、 プロジェクト・クラスパスコンテナを横断してrevisionを同期するメカニズムを提供する。

次のように、三つのプロジェクトのあるワークスペースを考えてみよう。それぞれのルートにはivy.xmlファイルがある。 これらのivyファイルは関連するIvyDE管理のクラスパスコンテナを持つ。

http://ant.apache.org/ivy/ivyde/history/latest-milestone/images/revexplorer_project.jpg

いずれか(あるいはすべて)のプロジェクトを右クリックし、「Ivy > Reverse Dependency Explorer」を選択するとビューがオープンする。 エクスプローラは

The explorer displays a tree structure with an item for each organization/module pair. The third column lists all of the revisions of this pair for the selected projects. Expanding a tree item, you can see the module revision that a given Ivy classpath container depends on (if at all). Note that the view only shows direct dependencies and no transitive dependencies.

http://ant.apache.org/ivy/ivyde/history/latest-milestone/images/revexplorer_view.jpg

Organization/module pairs that have conflicting revisions are highlighted in red (junit in the above example). Note that in the above example, though the revisions do not match, these two revision attributes may actually resolve to the same artifact, depending on what is available in the repository. The view does not attempt to perform a resolve and match the resolved artifacts. It simply compares the text of the attributes.

Synchronizing revisions To synchronize revisions, click in the column and row of the item you want to change and type in the new revision. The item should be highlighted green to indicate that it is tagged for synchronization. Click the synchronize button as shown to save your changes.

http://ant.apache.org/ivy/ivyde/history/latest-milestone/images/revexplorer_sync.jpg