Steve Loughran posts his initial thoughts based on a reading of the docs. He has a number of interesting criticisms of MSBuild, particularly about pushing dependency analysis to the target level. Steve is a co-author of the excellent book Java Development with Ant and an Ant committer.
Stefan Bodewig posts several entries about MSBuild.
In target depenencies Stefan raises some interesting issues about dependency analysis, much like what Steve did in his entry. This is a particularly interesting problem when you consider what happens with dependencies if you want to incrementally update an FTP server. It’s unclear to me how Inputs/Outputs would conflict with an FTP task that did smart dependency analysis against remote date/time stamps.
In conditions in MSBuild and Ant Stefan advocates using properties files in Ant over XML property elements. The problem I have with property files in general is that they aren’t XML. This makes it much harder to manipulate these files through generalized XML techniques such as XSLT. It’s not impossible, but it increases the friction considerably. +1 to MSBuild for avoiding property files (even at the cost of additional verbosity).
In Items in MSBuild Stefan examines the way tasks can be decoupled via Items. Specifically, it’s the OutputItem element in MSBuild that allows tasks to both consume and emit Items, which makes it far easier to couple the output of one task to the input of another. He also proposes a very interesting “pipe” syntax that would allow tasks to be decoupled without incurring the friction involved in defining an OutputItem for a task.
2 archived reader comments
Stefan Bodewig (2003-11-06)
Steve’s last name is Loughran 8-)
John Lam (2003-11-06)
Whoops! Just fixed it. Thanks for the catch!