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. :)
Try GRAND, here
Super easy to use and setup.
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.
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.