Revision 3 as of 2010-09-19 14:10:41

Clear message
Locked History Actions

ivy/IvyDE/revdepexplorer

逆依存性エクスプローラ

紹介

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

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

The Reverse Dependency Explorer turns the dependency tree upside-down, exploring the workspace by organization, module, and revision and providing a mechanism to synchronize revisions across projects/classpath containers.

Consider the following workspace, with three projects, all of which have an ivy.xml file at their project root. Each of these Ivy files has an associated IvyDE managed classpath container.

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

Right clicking on any (or all) of the projects and selecting Ivy > Reverse Dependency Explorer opens the view. 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