NAnt task: AppendXml - nant task when creating umbraco packages via build script
Just a little cool nant task I would like to share. It is mainly targeted developers wich are building packages via build script.
The nant task xmlpeek and xmlpoke are quite simple and it is difficult to append xml nodes to xml files. You can do it though but the build script will be harder to maintain.
The task can take a node list from a source xml document and append it to a node in a target xml document
Project.Log(Level.Warning, "No target node found via XPath in target file!"); } else if (targetNodes.Count > 1) {
Project.Log(Level.Warning, string.Format("{0} nodes found when trying to find one target node found via XPath in target file!", targetNodes.Count)); } else
NAnt task: AppendXml - nant task when creating umbraco packages via build script
Just a little cool nant task I would like to share.
It is mainly targeted developers wich are building packages via build script.
The nant task xmlpeek and xmlpoke are quite simple and it is difficult to append xml nodes to xml files. You can do it though but the build script will be harder to maintain.
The task can take a node list from a source xml document and append it to a node in a target xml document
The source code for the task is in the bottom
Example files:
AppendDictionaries.build
package.xml
Publication.Module.Dictionary.xml
News.Module.Dictionary.xml
Updated package.xml
AppendXmlTask.cs
is working on a reply...