Is there any good tool to view and browse ant buil

2019-03-31 18:39发布

问题:

I found it is hard to read an ant build file. Especially if the build file has lots of imported files, like property file and other xml build file.

Therefore, I am wondering if there are some good tools that can help, like viewing and browsing source code in IDE.

Thanks in advance. :)

回答1:

Try GRAND, here

Super easy to use and setup.



回答2:

ant2dot (https://github.com/pvdb/ant2dot) will transform your ant build file into a dot file, which you can then use graphviz to turn into an image of the task dependencies in your build script. You can even automate that process with an ant task in the build file.

Its great if that's the level of detail you're looking fore. Otherwise the best I've seen is just your basic XML structure inside a tree control. IIRC Netbeans does this.



回答3:

I think Eclipse does a good job. It will even do basic error checking for you --like the opening and closing of tags and validation of path vars.



标签: java ant build