Ant目标的依赖关系树浏览器 [英] Ant target dependency tree viewer

查看:466
本文介绍了Ant目标的依赖关系树浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一款软件(或Eclipse插件)其中,

IS there a piece of software (or an eclipse plug-in) which,

给出一个目标,将允许我查看目标的依赖作为树?

given a target, would allow me to view the target dependency as a tree?

这棵树并不需要是图形化的,可能是基于文本的 - 只是一个工具,这将有助于我穿过救援人员到场的蚂蚁文件的人的网格,以对其进行调试

The tree does not need to be graphical, could be text based - just a tool that would help me traverse thro someone's mesh of ant files to debug them.

不需要是一个Eclipse插件。然而,当点击会抛出这一目标的来源上编辑一个节点将是很好的。

Does not need to be an Eclipse plug-in. However, would be nice when a node is clicked would throw the source of that target onto an editor.

推荐答案

类似的质疑蚂蚁在Eclipse中调试

,您可以用 -projecthelp 选项。这可能是以后更加困难,因为不同的指标可能有交叉依赖,因而不可能再present层次为一棵树都没有。

Based on Apache's ANT manual, you can start with the -projecthelp option. It might be more difficult after that because the various targets may have cross-dependencies and thus be impossible to represent the hierarchy as a tree at all.

您可以修改build.xml检测环境变量,例如NO_PRINT这是在每一个项目的目标进行测试,如果找到,只打印出该项目的名称而已。该项目的depencies将保留并允许ANT走树和产生的,将得到触动了不同目标的打印输出。

You could modify the build.xml to detect an environment variable, e.g. NO_PRINT which is tested in each project target and if found, only print out the project name and nothing else. The depencies for the project would remain and allow ANT to walk the tree and produce a printout of the different targets that would get touched.

这篇关于Ant目标的依赖关系树浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆