Submit Your Article
Home Articles News Tutorials Videos Add An Article
Topics: Design Photoshop Programming PHP CSS Java Database Web Development Javascript Ajax
– Close + Open

Find Out More About DevWebPro!

Sign up for the newsletter


» Terms & Conditions

Welcome to the New DevWebPro!

DevWebPro Includes:
  Hundreds Of Tutorials   Developer News
  Unique Gadget Videos   Tons of Topics to Discuss
  Expert Advice   We Will Publish Your Articles

Taking Your XML From Visualization To Reality

By: Sean Corfield
Tuesday, February 9th, 2010
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook

I’ve spent today working on a reasonably complex build.xml file, refactoring it to reduce duplication by using the ant-contrib foreach task so that similar targets can be reduced to loops over a list of properties (I’ll blog on that later since it includes some fancy nested loops to run Selenium tests across multiple applications on a server).

I wanted a way to look at the structure of the ant file before I did open-heart surgery on it. Google led me to ant2dot and GraphViz (with a very nice version for Mac OS X and the iPhone).

It’s a very neat way to quickly get a handle on the dependencies in your ant file and it’s certainly helped me figure out how to reorganize things.

My only complaint would be that it doesn’t understand the ant-contrib foreach task which has a target attribute and therefore creates a dependency so such children appear as orphans.

I figured I’d blog this in case anyone else finds it useful!

Comments

Topics: , ,

About the Author:
Sean is currently Chief Technology Officer for Railo Technologies US. He has worked in IT for over twenty five years, starting out writing database systems and compilers then moving into mobile telecoms and finally into web development in 1997. Along the way, he worked on the ISO and ANSI C++ Standards committees for eight years and is a staunch advocate of software standards and best practice. Sean has championed and contributed to a number of CFML frameworks and was lead developer on Fusebox for two years.
DevWebPro is an iEntry Network ® publication - © 1998-2010 All Rights Reserved