Recent Articles

XML Used To Exploit Twitter Flaw
It looks like XML is going to become a hot (or at least warm) topic at the upcoming Black Hat Technical Security Conference. Apparently a researcher's discovered a problem affecting Twitter and a number of...

Microsoft to Remove XML Support from Word
In a previous patch for MS Office, Microsoft removed support for custom XML according to an article from Computerworld. This is a result of an injunction i4i won against Microsoft. It prevents Microsoft from...

New Syncro Soft XML Editor and Author Release
Syncro Soft, the privately owned software company who is known for their expertly written XML programs, has released a new version of their editing and authoring systems. They're both called Oxygen XML...

Two Leading XML Solution Experts To Host Webinar...
For those who have problems with content overload or content misuse, a webinar is being hosted which could present you with solutions. When an enterprise has content which is vital to making a deadline...

02.09.10



Taking Your XML From Visualization To Reality

By Sean Corfield

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


About the Author:
Sean is currently Senior Computer Scientist and Team Lead in the Hosted Services group at Adobe Systems Incorporated. He has worked in the IT industry for nearly twenty-five years, first in database systems and compilers (serving eight years on the ANSI C++ Standards Committee), then in mobile telecoms, and finally in web development. Sean is a staunch advocate of software standards and best practices, and is a well-known and respected speaker on these subjects. Sean has championed and contributed to a number of ColdFusion frameworks, and is a frequent publisher on his blog, http://corfield.org/
About xmlProNews

xmlProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of XML environments. News and Advice for XML Professionals





xmlProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com SysAdminNews.com






-- XMLProNewsis an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2010 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


XMLProNews