Skip to Content

creating dependency tree

Posted in

I would like to use the code of ant4eclipse to create a dependency tree of the Eclipse projects in a workspace or a specific list of projects inside a workspace.

Does this exist already ?

Otherwise, I could start coding. I have seen that there is a getBuildOrder task. Is the source code of this task a good starting point ?

We could add an ant task to generate the dependency tree, with the option to generate an XML or DOT file to be processed further by a graphing tool. The possibilities offered by the report task of ivy could be offered here too.

[1] http://ant.apache.org/ivy/history/latest-milestone/use/report.html

Hi antoinell, First of all:

Hi antoinell,

First of all: My apologies for the late answer. Unfortunately the forum currently doesn't trigger mails to us in a reliable manner.

Regarding your suggestion: I already had the same feature in mind as I personally think that it's a very nice one. I didn't found the time though so it would be nice if there would be some code from others.

Since I don't know whether you already started or not here are some pointers:

* we've got two layers within the workspace which can be distinguished by the base packages: org.ant4eclipse.ant and org.ant4eclipse.lib . The latter one is independent from ant and generally provides the code to access Eclipse project files where the first also incorporates the binding to the ant build system.

* if you're still into it I suggest to have a look at classes like the DependencyGraph .

* the ideal way is to create some kind of exporter class within the lib-layer and then an ant task which is used to generate the XML/DOT code.

Best regards

Daniel Kasmeroglu