Attachment: XmlPokeTask.cs
Description: Binary data


Hello all,

I have made a change to the XmlPoke Task that I would really like to see in the next version of NAnt. I have added a property called "Preserve" which defaults to false (to act like the current shipping version). When set to True then the XML Document will preserve it's original formatting when it is saved.

I made this change mainly due to a bug in installshield. When you store your ISM file in XML so that you can modify it via build process, you typically use XmlPoke to update values. The problem is that the file is saved with new formatting. Some of the empty nodes are recorded as <node>{crlf}</node>. Installshield freaks out when there is an empty node or any node that spans multiple lines.

By allowing a user to set preserve="true" then the issue is resolved as the file will be modified but saved in the same format as the original. I am sure this can be useful in other situations as well.

Thanks

Victoria French
SF ID: Metrosharp

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to