From: <bo...@us...> - 2009-04-30 11:20:30
|
Revision: 306 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=306&view=rev Author: bodewig Date: 2009-04-30 11:20:19 +0000 (Thu, 30 Apr 2009) Log Message: ----------- Tag XMLUnit .NET 0.4 Added Paths: ----------- tags/XMLUnit.NET-0.4/ tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs Removed Paths: ------------- tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs Deleted: tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs =================================================================== --- branches/xmlunit-1.x/src/csharp/XmlDiff.cs 2009-04-30 10:37:32 UTC (rev 304) +++ tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs 2009-04-30 11:20:19 UTC (rev 306) @@ -1,356 +0,0 @@ -namespace XmlUnit { - using System; - using System.Collections; - using System.IO; - using System.Xml; - using System.Xml.Schema; - - public class XmlDiff { - private const string XMLNS_PREFIX = "xmlns"; - - private readonly XmlInput controlInput; - private readonly XmlInput testInput; - private readonly DiffConfiguration _diffConfiguration; - private DiffResult _diffResult; - - public XmlDiff(XmlInput control, XmlInput test, - DiffConfiguration diffConfiguration) { - _diffConfiguration = diffConfiguration; - controlInput = control; - testInput = test; - } - - public XmlDiff(XmlInput control, XmlInput test) - : this(control, test, new DiffConfiguration()) { - } - - public XmlDiff(TextReader control, TextReader test) - : this(new XmlInput(control), new XmlInput(test)) { - } - - public XmlDiff(string control, string test) - : this(new XmlInput(control), new XmlInput(test)) { - } - - private XmlReader CreateXmlReader(XmlInput forInput) { - XmlReader xmlReader = forInput.CreateXmlReader(); - - if (xmlReader is XmlTextReader) { - ((XmlTextReader) xmlReader ).WhitespaceHandling = _diffConfiguration.WhitespaceHandling; - } - - if (_diffConfiguration.UseValidatingParser) { - XmlValidatingReader validatingReader = new XmlValidatingReader(xmlReader); - return validatingReader; - } - - return xmlReader; - } - - public DiffResult Compare() { - if (_diffResult == null) { - _diffResult = new DiffResult(); - using (XmlReader controlReader = CreateXmlReader(controlInput)) - using (XmlReader testReader = CreateXmlReader(testInput)) { - if (!controlInput.Equals(testInput)) { - Compare(_diffResult, controlReader, testReader); - } - } - } - return _diffResult; - } - - private void Compare(DiffResult result, XmlReader controlReader, - XmlReader testReader) { - try { - ReaderWithState control = new ReaderWithState(controlReader); - ReaderWithState test = new ReaderWithState(testReader); - do { - control.Read(); - test.Read(); - Compare(result, control, test); - } while (control.HasRead && test.HasRead) ; - } catch (FlowControlException e) { - Console.Out.WriteLine(e.Message); - } - } - - private void Compare(DiffResult result, ReaderWithState control, - ReaderWithState test) { - if (control.HasRead) { - if (test.HasRead) { - CompareNodes(result, control, test); - CheckEmptyOrAtEndElement(result, control, test); - } else { - DifferenceFound(DifferenceType.CHILD_NODELIST_LENGTH_ID, result); - } - } - } - - private void CompareNodes(DiffResult result, ReaderWithState control, - ReaderWithState test) { - XmlNodeType controlNodeType = control.Reader.NodeType; - XmlNodeType testNodeType = test.Reader.NodeType; - if (!controlNodeType.Equals(testNodeType)) { - CheckNodeTypes(controlNodeType, testNodeType, result, - control, test); - } else if (controlNodeType == XmlNodeType.Element) { - CompareElements(result, control, test); - } else if (controlNodeType == XmlNodeType.Text) { - CompareText(result, control, test); - } - } - - private void CheckNodeTypes(XmlNodeType controlNodeType, - XmlNodeType testNodeType, - DiffResult result, - ReaderWithState control, - ReaderWithState test) { - ReaderWithState readerToAdvance = null; - if (controlNodeType.Equals(XmlNodeType.XmlDeclaration)) { - readerToAdvance = control; - } else if (testNodeType.Equals(XmlNodeType.XmlDeclaration)) { - readerToAdvance = test; - } - - if (readerToAdvance != null) { - DifferenceFound(DifferenceType.HAS_XML_DECLARATION_PREFIX_ID, - controlNodeType, testNodeType, result); - readerToAdvance.Read(); - CompareNodes(result, control, test); - } else { - DifferenceFound(DifferenceType.NODE_TYPE_ID, controlNodeType, - testNodeType, result); - } - } - - private void CompareElements(DiffResult result, ReaderWithState control, - ReaderWithState test) { - string controlTagName = control.Reader.Name; - string testTagName = test.Reader.Name; - if (!String.Equals(controlTagName, testTagName)) { - DifferenceFound(DifferenceType.ELEMENT_TAG_NAME_ID, result); - } else { - XmlAttribute[] controlAttributes = - GetNonSpecialAttributes(control); - XmlAttribute[] testAttributes = GetNonSpecialAttributes(test); - if (controlAttributes.Length != testAttributes.Length) { - DifferenceFound(DifferenceType.ELEMENT_NUM_ATTRIBUTES_ID, result); - } - CompareAttributes(result, controlAttributes, testAttributes); - } - } - - private void CompareAttributes(DiffResult result, - XmlAttribute[] controlAttributes, - XmlAttribute[] testAttributes) { - ArrayList unmatchedTestAttributes = new ArrayList(); - unmatchedTestAttributes.AddRange(testAttributes); - for (int i=0; i < controlAttributes.Length; ++i) { - - bool controlIsInNs = IsNamespaced(controlAttributes[i]); - string controlAttrName = - GetUnNamespacedNodeName(controlAttributes[i]); - XmlAttribute testAttr = null; - if (!controlIsInNs) { - testAttr = FindAttributeByName(testAttributes, - controlAttrName); - } else { - testAttr = FindAttributeByNameAndNs(testAttributes, - controlAttrName, - controlAttributes[i] - .NamespaceURI); - } - - if (testAttr != null) { - unmatchedTestAttributes.Remove(testAttr); - if (!_diffConfiguration.IgnoreAttributeOrder - && testAttr != testAttributes[i]) { - DifferenceFound(DifferenceType.ATTR_SEQUENCE_ID, - result); - } - - if (controlAttributes[i].Value != testAttr.Value) { - DifferenceFound(DifferenceType.ATTR_VALUE_ID, result); - } - - } else { - DifferenceFound(DifferenceType.ATTR_NAME_NOT_FOUND_ID, - result); - } - } - foreach (XmlAttribute a in unmatchedTestAttributes) { - DifferenceFound(DifferenceType.ATTR_NAME_NOT_FOUND_ID, result); - } - } - - private void CompareText(DiffResult result, ReaderWithState control, - ReaderWithState test) { - string controlText = control.Reader.Value; - string testText = test.Reader.Value; - if (!String.Equals(controlText, testText)) { - DifferenceFound(DifferenceType.TEXT_VALUE_ID, result); - } - } - - private void DifferenceFound(DifferenceType differenceType, DiffResult result) { - DifferenceFound(new Difference(differenceType), result); - } - - private void DifferenceFound(Difference difference, DiffResult result) { - result.DifferenceFound(this, difference); - if (!ContinueComparison(difference)) { - throw new FlowControlException(difference); - } - } - - private void DifferenceFound(DifferenceType differenceType, - XmlNodeType controlNodeType, - XmlNodeType testNodeType, - DiffResult result) { - DifferenceFound(new Difference(differenceType, controlNodeType, testNodeType), - result); - } - - private bool ContinueComparison(Difference afterDifference) { - return !afterDifference.MajorDifference; - } - - private void CheckEmptyOrAtEndElement(DiffResult result, - ReaderWithState control, - ReaderWithState test) { - if (control.LastElementWasEmpty) { - if (!test.LastElementWasEmpty) { - CheckEndElement(test, result); - } - } else { - if (test.LastElementWasEmpty) { - CheckEndElement(control, result); - } - } - } - - private XmlAttribute[] GetNonSpecialAttributes(ReaderWithState r) { - ArrayList l = new ArrayList(); - int length = r.Reader.AttributeCount; - if (length > 0) { - XmlDocument doc = new XmlDocument(); - r.Reader.MoveToFirstAttribute(); - for (int i = 0; i < length; i++) { - XmlAttribute a = doc.CreateAttribute(r.Reader.Name, - r.Reader.NamespaceURI); - if (!IsXMLNSAttribute(a)) { - a.Value = r.Reader.Value; - l.Add(a); - } - r.Reader.MoveToNextAttribute(); - } - } - return (XmlAttribute[]) l.ToArray(typeof(XmlAttribute)); - } - - private bool IsXMLNSAttribute(XmlAttribute attribute) { - return XMLNS_PREFIX == attribute.Prefix || - XMLNS_PREFIX == attribute.Name; - } - - private XmlAttribute FindAttributeByName(XmlAttribute[] attrs, - string name) { - foreach (XmlAttribute a in attrs) { - if (GetUnNamespacedNodeName(a) == name) { - return a; - } - } - return null; - } - - private XmlAttribute FindAttributeByNameAndNs(XmlAttribute[] attrs, - string name, - string nsUri) { - foreach (XmlAttribute a in attrs) { - if (GetUnNamespacedNodeName(a) == name - && a.NamespaceURI == nsUri) { - return a; - } - } - return null; - } - - private string GetUnNamespacedNodeName(XmlNode aNode) { - return GetUnNamespacedNodeName(aNode, IsNamespaced(aNode)); - } - - private string GetUnNamespacedNodeName(XmlNode aNode, - bool isNamespacedNode) { - if (isNamespacedNode) { - return aNode.LocalName; - } - return aNode.Name; - } - - private bool IsNamespaced(XmlNode aNode) { - string ns = aNode.NamespaceURI; - return ns != null && ns.Length > 0; - } - - private void CheckEndElement(ReaderWithState reader, DiffResult result) { - bool readResult = reader.Read(); - if (!readResult - || reader.Reader.NodeType != XmlNodeType.EndElement) { - DifferenceFound(DifferenceType.CHILD_NODELIST_LENGTH_ID, result); - } - } - - public string OptionalDescription { - get { - return _diffConfiguration.Description; - } - } - - private class FlowControlException : ApplicationException { - public FlowControlException(Difference cause) : base(cause.ToString()) { - } - } - - private class ReaderWithState { - internal ReaderWithState(XmlReader reader) { - Reader = reader; - HasRead = false; - LastElementWasEmpty = false; - } - - internal readonly XmlReader Reader; - internal bool HasRead; - internal bool LastElementWasEmpty; - - internal bool Read() { - HasRead = Reader.Read(); - if (HasRead) { - switch (Reader.NodeType) { - case XmlNodeType.Element: - LastElementWasEmpty = Reader.IsEmptyElement; - break; - case XmlNodeType.EndElement: - LastElementWasEmpty = false; - break; - default: - // don't care - break; - } - } - return HasRead; - } - - internal string State { - get { - return string.Format("Name {0}, NodeType {1}, IsEmpty {2}," - + " HasRead {3}, LastWasEmpty {4}", - Reader.Name, - Reader.NodeType, - Reader.IsEmptyElement, - HasRead, LastElementWasEmpty); - } - } - } - } -} Copied: tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs (from rev 305, branches/xmlunit-1.x/src/csharp/XmlDiff.cs) =================================================================== --- tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs (rev 0) +++ tags/XMLUnit.NET-0.4/src/csharp/XmlDiff.cs 2009-04-30 11:20:19 UTC (rev 306) @@ -0,0 +1,369 @@ +namespace XmlUnit { + using System; + using System.Collections; + using System.IO; + using System.Xml; + using System.Xml.Schema; + + public class XmlDiff { + private const string XMLNS_PREFIX = "xmlns"; + + private readonly XmlInput controlInput; + private readonly XmlInput testInput; + private readonly DiffConfiguration _diffConfiguration; + private DiffResult _diffResult; + + public XmlDiff(XmlInput control, XmlInput test, + DiffConfiguration diffConfiguration) { + _diffConfiguration = diffConfiguration; + controlInput = control; + testInput = test; + } + + public XmlDiff(XmlInput control, XmlInput test) + : this(control, test, new DiffConfiguration()) { + } + + public XmlDiff(TextReader control, TextReader test) + : this(new XmlInput(control), new XmlInput(test)) { + } + + public XmlDiff(string control, string test) + : this(new XmlInput(control), new XmlInput(test)) { + } + + private XmlReader CreateXmlReader(XmlInput forInput) { + XmlReader xmlReader = forInput.CreateXmlReader(); + + if (xmlReader is XmlTextReader) { + ((XmlTextReader) xmlReader ).WhitespaceHandling = _diffConfiguration.WhitespaceHandling; + } + + if (_diffConfiguration.UseValidatingParser) { + XmlValidatingReader validatingReader = new XmlValidatingReader(xmlReader); + return validatingReader; + } + + return xmlReader; + } + + public DiffResult Compare() { + if (_diffResult == null) { + _diffResult = new DiffResult(); + XmlReader controlReader, testReader; + controlReader = testReader = null; + try { + controlReader = CreateXmlReader(controlInput); + testReader = CreateXmlReader(testInput); + if (!controlInput.Equals(testInput)) { + Compare(_diffResult, controlReader, testReader); + } + } finally { + try { + if (testReader != null) { + testReader.Close(); + } + } finally { + if (controlReader != null) { + controlReader.Close(); + } + } + } + } + return _diffResult; + } + + private void Compare(DiffResult result, XmlReader controlReader, + XmlReader testReader) { + try { + ReaderWithState control = new ReaderWithState(controlReader); + ReaderWithState test = new ReaderWithState(testReader); + do { + control.Read(); + test.Read(); + Compare(result, control, test); + } while (control.HasRead && test.HasRead) ; + } catch (FlowControlException e) { + Console.Out.WriteLine(e.Message); + } + } + + private void Compare(DiffResult result, ReaderWithState control, + ReaderWithState test) { + if (control.HasRead) { + if (test.HasRead) { + CompareNodes(result, control, test); + CheckEmptyOrAtEndElement(result, control, test); + } else { + DifferenceFound(DifferenceType.CHILD_NODELIST_LENGTH_ID, result); + } + } + } + + private void CompareNodes(DiffResult result, ReaderWithState control, + ReaderWithState test) { + XmlNodeType controlNodeType = control.Reader.NodeType; + XmlNodeType testNodeType = test.Reader.NodeType; + if (!controlNodeType.Equals(testNodeType)) { + CheckNodeTypes(controlNodeType, testNodeType, result, + control, test); + } else if (controlNodeType == XmlNodeType.Element) { + CompareElements(result, control, test); + } else if (controlNodeType == XmlNodeType.Text) { + CompareText(result, control, test); + } + } + + private void CheckNodeTypes(XmlNodeType controlNodeType, + XmlNodeType testNodeType, + DiffResult result, + ReaderWithState control, + ReaderWithState test) { + ReaderWithState readerToAdvance = null; + if (controlNodeType.Equals(XmlNodeType.XmlDeclaration)) { + readerToAdvance = control; + } else if (testNodeType.Equals(XmlNodeType.XmlDeclaration)) { + readerToAdvance = test; + } + + if (readerToAdvance != null) { + DifferenceFound(DifferenceType.HAS_XML_DECLARATION_PREFIX_ID, + controlNodeType, testNodeType, result); + readerToAdvance.Read(); + CompareNodes(result, control, test); + } else { + DifferenceFound(DifferenceType.NODE_TYPE_ID, controlNodeType, + testNodeType, result); + } + } + + private void CompareElements(DiffResult result, ReaderWithState control, + ReaderWithState test) { + string controlTagName = control.Reader.Name; + string testTagName = test.Reader.Name; + if (!String.Equals(controlTagName, testTagName)) { + DifferenceFound(DifferenceType.ELEMENT_TAG_NAME_ID, result); + } else { + XmlAttribute[] controlAttributes = + GetNonSpecialAttributes(control); + XmlAttribute[] testAttributes = GetNonSpecialAttributes(test); + if (controlAttributes.Length != testAttributes.Length) { + DifferenceFound(DifferenceType.ELEMENT_NUM_ATTRIBUTES_ID, result); + } + CompareAttributes(result, controlAttributes, testAttributes); + } + } + + private void CompareAttributes(DiffResult result, + XmlAttribute[] controlAttributes, + XmlAttribute[] testAttributes) { + ArrayList unmatchedTestAttributes = new ArrayList(); + unmatchedTestAttributes.AddRange(testAttributes); + for (int i=0; i < controlAttributes.Length; ++i) { + + bool controlIsInNs = IsNamespaced(controlAttributes[i]); + string controlAttrName = + GetUnNamespacedNodeName(controlAttributes[i]); + XmlAttribute testAttr = null; + if (!controlIsInNs) { + testAttr = FindAttributeByName(testAttributes, + controlAttrName); + } else { + testAttr = FindAttributeByNameAndNs(testAttributes, + controlAttrName, + controlAttributes[i] + .NamespaceURI); + } + + if (testAttr != null) { + unmatchedTestAttributes.Remove(testAttr); + if (!_diffConfiguration.IgnoreAttributeOrder + && testAttr != testAttributes[i]) { + DifferenceFound(DifferenceType.ATTR_SEQUENCE_ID, + result); + } + + if (controlAttributes[i].Value != testAttr.Value) { + DifferenceFound(DifferenceType.ATTR_VALUE_ID, result); + } + + } else { + DifferenceFound(DifferenceType.ATTR_NAME_NOT_FOUND_ID, + result); + } + } + foreach (XmlAttribute a in unmatchedTestAttributes) { + DifferenceFound(DifferenceType.ATTR_NAME_NOT_FOUND_ID, result); + } + } + + private void CompareText(DiffResult result, ReaderWithState control, + ReaderWithState test) { + string controlText = control.Reader.Value; + string testText = test.Reader.Value; + if (!String.Equals(controlText, testText)) { + DifferenceFound(DifferenceType.TEXT_VALUE_ID, result); + } + } + + private void DifferenceFound(DifferenceType differenceType, DiffResult result) { + DifferenceFound(new Difference(differenceType), result); + } + + private void DifferenceFound(Difference difference, DiffResult result) { + result.DifferenceFound(this, difference); + if (!ContinueComparison(difference)) { + throw new FlowControlException(difference); + } + } + + private void DifferenceFound(DifferenceType differenceType, + XmlNodeType controlNodeType, + XmlNodeType testNodeType, + DiffResult result) { + DifferenceFound(new Difference(differenceType, controlNodeType, testNodeType), + result); + } + + private bool ContinueComparison(Difference afterDifference) { + return !afterDifference.MajorDifference; + } + + private void CheckEmptyOrAtEndElement(DiffResult result, + ReaderWithState control, + ReaderWithState test) { + if (control.LastElementWasEmpty) { + if (!test.LastElementWasEmpty) { + CheckEndElement(test, result); + } + } else { + if (test.LastElementWasEmpty) { + CheckEndElement(control, result); + } + } + } + + private XmlAttribute[] GetNonSpecialAttributes(ReaderWithState r) { + ArrayList l = new ArrayList(); + int length = r.Reader.AttributeCount; + if (length > 0) { + XmlDocument doc = new XmlDocument(); + r.Reader.MoveToFirstAttribute(); + for (int i = 0; i < length; i++) { + XmlAttribute a = doc.CreateAttribute(r.Reader.Name, + r.Reader.NamespaceURI); + if (!IsXMLNSAttribute(a)) { + a.Value = r.Reader.Value; + l.Add(a); + } + r.Reader.MoveToNextAttribute(); + } + } + return (XmlAttribute[]) l.ToArray(typeof(XmlAttribute)); + } + + private bool IsXMLNSAttribute(XmlAttribute attribute) { + return XMLNS_PREFIX == attribute.Prefix || + XMLNS_PREFIX == attribute.Name; + } + + private XmlAttribute FindAttributeByName(XmlAttribute[] attrs, + string name) { + foreach (XmlAttribute a in attrs) { + if (GetUnNamespacedNodeName(a) == name) { + return a; + } + } + return null; + } + + private XmlAttribute FindAttributeByNameAndNs(XmlAttribute[] attrs, + string name, + string nsUri) { + foreach (XmlAttribute a in attrs) { + if (GetUnNamespacedNodeName(a) == name + && a.NamespaceURI == nsUri) { + return a; + } + } + return null; + } + + private string GetUnNamespacedNodeName(XmlNode aNode) { + return GetUnNamespacedNodeName(aNode, IsNamespaced(aNode)); + } + + private string GetUnNamespacedNodeName(XmlNode aNode, + bool isNamespacedNode) { + if (isNamespacedNode) { + return aNode.LocalName; + } + return aNode.Name; + } + + private bool IsNamespaced(XmlNode aNode) { + string ns = aNode.NamespaceURI; + return ns != null && ns.Length > 0; + } + + private void CheckEndElement(ReaderWithState reader, DiffResult result) { + bool readResult = reader.Read(); + if (!readResult + || reader.Reader.NodeType != XmlNodeType.EndElement) { + DifferenceFound(DifferenceType.CHILD_NODELIST_LENGTH_ID, result); + } + } + + public string OptionalDescription { + get { + return _diffConfiguration.Description; + } + } + + private class FlowControlException : ApplicationException { + public FlowControlException(Difference cause) : base(cause.ToString()) { + } + } + + private class ReaderWithState { + internal ReaderWithState(XmlReader reader) { + Reader = reader; + HasRead = false; + LastElementWasEmpty = false; + } + + internal readonly XmlReader Reader; + internal bool HasRead; + internal bool LastElementWasEmpty; + + internal bool Read() { + HasRead = Reader.Read(); + if (HasRead) { + switch (Reader.NodeType) { + case XmlNodeType.Element: + LastElementWasEmpty = Reader.IsEmptyElement; + break; + case XmlNodeType.EndElement: + LastElementWasEmpty = false; + break; + default: + // don't care + break; + } + } + return HasRead; + } + + internal string State { + get { + return string.Format("Name {0}, NodeType {1}, IsEmpty {2}," + + " HasRead {3}, LastWasEmpty {4}", + Reader.Name, + Reader.NodeType, + Reader.IsEmptyElement, + HasRead, LastElementWasEmpty); + } + } + } + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2009-09-21 19:37:49
|
Revision: 357 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=357&view=rev Author: bodewig Date: 2009-09-21 19:37:43 +0000 (Mon, 21 Sep 2009) Log Message: ----------- tag release 1.3 of XMLUnit for Java Modified Paths: -------------- tags/XMLUnit-Java-1.3/LICENSE.txt tags/XMLUnit-Java-1.3/build.xml Added Paths: ----------- tags/XMLUnit-Java-1.3/ Property changes on: tags/XMLUnit-Java-1.3 ___________________________________________________________________ Added: svn:mergeinfo + Modified: tags/XMLUnit-Java-1.3/LICENSE.txt =================================================================== --- branches/xmlunit-1.x/LICENSE.txt 2009-09-21 10:21:20 UTC (rev 356) +++ tags/XMLUnit-Java-1.3/LICENSE.txt 2009-09-21 19:37:43 UTC (rev 357) @@ -1,6 +1,6 @@ /* ****************************************************************** -Copyright (c) 2001-2007, Jeff Martin, Tim Bacon +Copyright (c) 2001-2009, Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without Modified: tags/XMLUnit-Java-1.3/build.xml =================================================================== --- branches/xmlunit-1.x/build.xml 2009-09-21 10:21:20 UTC (rev 356) +++ tags/XMLUnit-Java-1.3/build.xml 2009-09-21 19:37:43 UTC (rev 357) @@ -37,7 +37,7 @@ <property file="build.properties"/> <!-- Version --> - <property name="xmlunit.version" value="1.3alpha"/> + <property name="xmlunit.version" value="1.3"/> <!-- some locations --> <property name="src.dir" value="src"/> @@ -264,7 +264,7 @@ </target> <target name="dist" - depends="clean,bindist,srcdist,compile-userguide-examples" + depends="bindist,srcdist,compile-userguide-examples" description="creates the distribution files"> <checksum algorithm="md5"> <fileset dir="${dist.dir}"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2013-02-07 05:31:23
|
Revision: 519 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=519&view=rev Author: bodewig Date: 2013-02-07 05:31:14 +0000 (Thu, 07 Feb 2013) Log Message: ----------- tag 1.4 release Added Paths: ----------- tags/XMLUnit-Java-1.4/ tags/XMLUnit-Java-1.4/LICENSE.txt tags/XMLUnit-Java-1.4/build.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom tags/XMLUnit-Java-1.4/src/site/index.html Removed Paths: ------------- tags/XMLUnit-Java-1.4/LICENSE.txt tags/XMLUnit-Java-1.4/build.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom tags/XMLUnit-Java-1.4/src/site/index.html Deleted: tags/XMLUnit-Java-1.4/LICENSE.txt =================================================================== --- branches/xmlunit-1.x/LICENSE.txt 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/LICENSE.txt 2013-02-07 05:31:14 UTC (rev 519) @@ -1,36 +0,0 @@ -/* -****************************************************************** -Copyright (c) 2001-2009, Jeff Martin, Tim Bacon -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of the xmlunit.sourceforge.net nor the names - of its contributors may be used to endorse or promote products - derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -****************************************************************** -*/ - Copied: tags/XMLUnit-Java-1.4/LICENSE.txt (from rev 518, branches/xmlunit-1.x/LICENSE.txt) =================================================================== --- tags/XMLUnit-Java-1.4/LICENSE.txt (rev 0) +++ tags/XMLUnit-Java-1.4/LICENSE.txt 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,36 @@ +/* +****************************************************************** +Copyright (c) 2001-2013, Jeff Martin, Tim Bacon +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the xmlunit.sourceforge.net nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +****************************************************************** +*/ + Deleted: tags/XMLUnit-Java-1.4/build.xml =================================================================== --- branches/xmlunit-1.x/build.xml 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/build.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -1,292 +0,0 @@ -<?xml version="1.0"?> -<!-- -Copyright (c) 2001-2008, Jeff Martin, Tim Bacon -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of the xmlunit.sourceforge.net nor the names - of its contributors may be used to endorse or promote products - derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ---> -<project name="xmlunit" default="test" basedir="."> - - <!-- allow properties to be overridden in a properties file --> - <property file="build.properties"/> - - <!-- Version --> - <property name="xmlunit.version" value="1.4alpha"/> - - <!-- some locations --> - <property name="src.dir" value="src"/> - <property name="test.dir" value="tests"/> - <property name="build.dir" location="build"/> - <property name="lib.dir" value="${build.dir}/lib"/> - <property name="out.dir" value="${build.dir}/classes"/> - <property name="test.out.dir" value="${build.dir}/test-classes"/> - <property name="userguide.out.dir" value="${build.dir}/ug-classes"/> - <property name="test.report.dir" value="${build.dir}/test-report"/> - <property name="dist.dir" value="${build.dir}/dist"/> - <property name="docs.dir" value="${build.dir}/doc"/> - <property name="userguide.docs.dir" value="${docs.dir}/userguide"/> - - <!-- javac properties --> - <property name="javac.source" value="1.3"/> - <property name="javac.target" value="1.3"/> - <property name="javac.debug" value="true"/> - - <!-- junit task properties --> - <property name="junit.fork" value="yes"/> - - <!-- some library paths --> - <!-- where is JAXP? property name="${xmlxsl.lib}" location="."/ --> - <!-- where is JUnit? property name="${junit.lib}" location="."/ --> - - <!-- Docbook related properties, macros and targets --> - <import file="docbook.xml"/> - - <target name="-props"> - <available property="jaxp13+" classname="javax.xml.xpath.XPath"/> - <condition property="jaxp13+.impl"> - <and> - <isset property="jaxp13+"/> - <available classname="java.net.Proxy"/> - </and> - </condition> - <available property="regexp.present" classname="java.util.regex.Matcher"/> - </target> - - <target name="-init" depends="-props"> - <mkdir dir="${lib.dir}"/> - <mkdir dir="${out.dir}"/> - <mkdir dir="${test.out.dir}"/> - <mkdir dir="${test.report.dir}"/> - <mkdir dir="${dist.dir}"/> - <mkdir dir="${docs.dir}"/> - <mkdir dir="${userguide.docs.dir}"/> - </target> - - <target name="clean" - description="removes created directories"> - <delete includeEmptyDirs="true" quiet="true"> - <fileset dir="${lib.dir}"/> - <fileset dir="${out.dir}"/> - <fileset dir="${test.out.dir}"/> - <fileset dir="${test.report.dir}"/> - <fileset dir="${dist.dir}"/> - <fileset dir="${docs.dir}"/> - <fileset dir="${userguide.docs.dir}"/> - <fileset dir="${build.dir}"/> - </delete> - </target> - - <target name="compile" depends="-init" - description="compiles sources and tests"> - <javac srcdir="${src.dir}/java" destdir="${out.dir}" - debug="${javac.debug}" target="${javac.target}" source="${javac.source}"> - <classpath> - <pathelement location="${xmlxsl.lib}"/> - <pathelement location="${junit.lib}"/> - <pathelement path="${java.class.path}"/> - </classpath> - <exclude name="**/jaxp13/**" unless="jaxp13+"/> - <exclude name="**/*XPathRegexAssert.java" unless="regexp.present"/> - </javac> - <javac srcdir="${test.dir}/java" destdir="${test.out.dir}" - debug="${javac.debug}" target="${javac.target}" source="${javac.source}"> - <classpath> - <pathelement location="${out.dir}"/> - <pathelement location="${xmlxsl.lib}"/> - <pathelement location="${junit.lib}"/> - <pathelement path="${java.class.path}"/> - </classpath> - <exclude name="**/jaxp13/**" unless="jaxp13+"/> - <exclude name="**/*XPathRegexAssert.java" unless="regexp.present"/> - </javac> - </target> - - <target name="test" depends="compile" - description="runs the tests"> - <junit printsummary="yes" haltonfailure="no" fork="${junit.fork}" - forkMode="perBatch" failureproperty="tests.failed"> - <sysproperty key="basedir" value="${basedir}"/> - <sysproperty key="user.dir" value="${basedir}"/> - <!-- - <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" - value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> - <sysproperty key="javax.xml.parsers.SAXParserFactory" - value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> - <sysproperty key="javax.xml.transform.TransformerFactory" - value="org.apache.xalan.processor.TransformerFactoryImpl"/> - --> - <classpath> - <pathelement location="${out.dir}"/> - <pathelement location="${test.out.dir}"/> - <pathelement location="${xmlxsl.lib}"/> - <pathelement location="${junit.lib}"/> - <pathelement path="${java.class.path}"/> - </classpath> - <formatter type="xml"/> - <batchtest todir="${test.report.dir}"> - <fileset dir="${test.dir}/java"> - <include name="**/test_*.java"/> - <exclude name="**/jaxp13/**" unless="jaxp13+.impl"/> - </fileset> - </batchtest> - </junit> - - <junitreport todir="${test.report.dir}"> - <fileset dir="${test.report.dir}"> - <include name="TEST-*.xml"/> - </fileset> - <report format="frames" todir="${test.report.dir}/html"/> - </junitreport> - - <fail if="tests.failed">Some tests failed</fail> - </target> - - <target name="docs" - depends="create-users-guide,javadocs,-site" - description="creates the documentation bundle"/> - - <target name="javadocs" depends="-init" - description="creates the API documentation"> - <delete includeEmptyDirs="true" dir="${docs.dir}/api"/> - <javadoc destdir="${docs.dir}/api" - overview="${src.dir}/java/overview.html" - windowtitle="XMLUnit Documentation" - footer="<p><a href="http://xmlunit.sourceforge.net/">XMLUnit</a> is hosted by sourceforge.net</p>"> - <group title="XMLUnit v${xmlunit.version}" - packages="org.custommonkey.xmlunit*"/> - <fileset dir="${src.dir}/java"> - <include name="org/custommonkey/**/*.java"/> - </fileset> - <classpath> - <fileset dir="${lib.dir}"> - <include name="*.jar"/> - </fileset> - <pathelement path="${java.class.path}"/> - </classpath> - </javadoc> - </target> - - <target name="-site" depends="-init"> - <copy todir="${docs.dir}"> - <fileset dir="${src.dir}/site"> - <include name="*.html"/> - <include name="*.png"/> - </fileset> - </copy> - </target> - - <target name="jar" depends="compile" - description="creates jar, Maven2 POM and Ivy file"> - <jar jarfile="${lib.dir}/xmlunit-${xmlunit.version}.jar" - basedir="${out.dir}" - /> - - <tstamp> - <format property="ivy.publication.datetime" pattern="yyyyMMddHHmmss"/> - </tstamp> - - <copy todir="${lib.dir}"> - <fileset dir="${src.dir}/etc"> - <include name="xmlunit.pom"/> - <include name="xmlunit-ivy.xml"/> - <include name="xmlunit-maven-metadata.xml"/> - </fileset> - <mapper type="glob" from="xmlunit*" to="xmlunit-${xmlunit.version}*"/> - <filterset> - <filter token="VERSION" value="${xmlunit.version}"/> - <filter token="DATE" value="${ivy.publication.datetime}"/> - <filter token="DESCRIPTION" value="XMLUnit compares a control XML document to a test document or the result of a transformation, validates documents, and compares the results of XPath expressions."/> - <filter token="LICENSE" value="BSD License"/> - <filter token="LICENSE_URL" value="http://xmlunit.svn.sourceforge.net/viewvc/*checkout*/xmlunit/trunk/xmlunit/LICENSE.txt"/> - <filter token="GROUP" value="xmlunit"/> - <filter token="ARTIFACT" value="xmlunit"/> - <filter token="TYPE" value="jar"/> - </filterset> - </copy> - </target> - - <target name="Gump" depends="test,jar"/> - - <target name="bindist" depends="jar,test,docs"> - <zip zipfile="${dist.dir}/xmlunit-${xmlunit.version}-bin.zip"> - <zipfileset prefix="xmlunit-${xmlunit.version}/lib" - dir="${lib.dir}"/> - <zipfileset prefix="xmlunit-${xmlunit.version}/docs" - dir="${docs.dir}"/> - <zipfileset prefix="xmlunit-${xmlunit.version}" dir="."> - <include name="KEYS"/> - <include name="LICENSE.txt"/> - <include name="README.txt"/> - </zipfileset> - </zip> - </target> - - <target name="srcdist" depends="-init,create-users-guide"> - <zip zipfile="${dist.dir}/xmlunit-${xmlunit.version}-src.zip"> - <zipfileset prefix="xmlunit-${xmlunit.version}" dir="."> - <include name="*.xml"/> - <include name="${src.dir}/"/> - <include name="${test.dir}/"/> - <include name="KEYS"/> - <include name="LICENSE.txt"/> - <include name="README.txt"/> - <exclude name="**/csharp/**"/> - </zipfileset> - <zipfileset dir="${userguide.docs.dir}" - prefix="xmlunit-${xmlunit.version}/userguide"/> - </zip> - </target> - - <target name="dist" - depends="bindist,srcdist,compile-userguide-examples" - description="creates the distribution files"> - <checksum algorithm="md5"> - <fileset dir="${dist.dir}"> - <include name="*.zip"/> - </fileset> - </checksum> - <checksum algorithm="sha1"> - <fileset dir="${dist.dir}"> - <include name="*.zip"/> - </fileset> - </checksum> - </target> - - <target name="compile-userguide-examples" depends="compile"> - <mkdir dir="${userguide.out.dir}"/> - <javac srcdir="src/user-guide" includes="org/" - destdir="${userguide.out.dir}" source="1.3" target="1.2"> - <classpath> - <pathelement location="${junit.lib}"/> - <pathelement location="${out.dir}"/> - </classpath> - </javac> - <delete dir="${userguide.out.dir}"/> - </target> -</project> Copied: tags/XMLUnit-Java-1.4/build.xml (from rev 518, branches/xmlunit-1.x/build.xml) =================================================================== --- tags/XMLUnit-Java-1.4/build.xml (rev 0) +++ tags/XMLUnit-Java-1.4/build.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,292 @@ +<?xml version="1.0"?> +<!-- +Copyright (c) 2001-2013, Jeff Martin, Tim Bacon +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the xmlunit.sourceforge.net nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +--> +<project name="xmlunit" default="test" basedir="."> + + <!-- allow properties to be overridden in a properties file --> + <property file="build.properties"/> + + <!-- Version --> + <property name="xmlunit.version" value="1.4"/> + + <!-- some locations --> + <property name="src.dir" value="src"/> + <property name="test.dir" value="tests"/> + <property name="build.dir" location="build"/> + <property name="lib.dir" value="${build.dir}/lib"/> + <property name="out.dir" value="${build.dir}/classes"/> + <property name="test.out.dir" value="${build.dir}/test-classes"/> + <property name="userguide.out.dir" value="${build.dir}/ug-classes"/> + <property name="test.report.dir" value="${build.dir}/test-report"/> + <property name="dist.dir" value="${build.dir}/dist"/> + <property name="docs.dir" value="${build.dir}/doc"/> + <property name="userguide.docs.dir" value="${docs.dir}/userguide"/> + + <!-- javac properties --> + <property name="javac.source" value="1.3"/> + <property name="javac.target" value="1.3"/> + <property name="javac.debug" value="true"/> + + <!-- junit task properties --> + <property name="junit.fork" value="yes"/> + + <!-- some library paths --> + <!-- where is JAXP? property name="${xmlxsl.lib}" location="."/ --> + <!-- where is JUnit? property name="${junit.lib}" location="."/ --> + + <!-- Docbook related properties, macros and targets --> + <import file="docbook.xml"/> + + <target name="-props"> + <available property="jaxp13+" classname="javax.xml.xpath.XPath"/> + <condition property="jaxp13+.impl"> + <and> + <isset property="jaxp13+"/> + <available classname="java.net.Proxy"/> + </and> + </condition> + <available property="regexp.present" classname="java.util.regex.Matcher"/> + </target> + + <target name="-init" depends="-props"> + <mkdir dir="${lib.dir}"/> + <mkdir dir="${out.dir}"/> + <mkdir dir="${test.out.dir}"/> + <mkdir dir="${test.report.dir}"/> + <mkdir dir="${dist.dir}"/> + <mkdir dir="${docs.dir}"/> + <mkdir dir="${userguide.docs.dir}"/> + </target> + + <target name="clean" + description="removes created directories"> + <delete includeEmptyDirs="true" quiet="true"> + <fileset dir="${lib.dir}"/> + <fileset dir="${out.dir}"/> + <fileset dir="${test.out.dir}"/> + <fileset dir="${test.report.dir}"/> + <fileset dir="${dist.dir}"/> + <fileset dir="${docs.dir}"/> + <fileset dir="${userguide.docs.dir}"/> + <fileset dir="${build.dir}"/> + </delete> + </target> + + <target name="compile" depends="-init" + description="compiles sources and tests"> + <javac srcdir="${src.dir}/java" destdir="${out.dir}" + debug="${javac.debug}" target="${javac.target}" source="${javac.source}"> + <classpath> + <pathelement location="${xmlxsl.lib}"/> + <pathelement location="${junit.lib}"/> + <pathelement path="${java.class.path}"/> + </classpath> + <exclude name="**/jaxp13/**" unless="jaxp13+"/> + <exclude name="**/*XPathRegexAssert.java" unless="regexp.present"/> + </javac> + <javac srcdir="${test.dir}/java" destdir="${test.out.dir}" + debug="${javac.debug}" target="${javac.target}" source="${javac.source}"> + <classpath> + <pathelement location="${out.dir}"/> + <pathelement location="${xmlxsl.lib}"/> + <pathelement location="${junit.lib}"/> + <pathelement path="${java.class.path}"/> + </classpath> + <exclude name="**/jaxp13/**" unless="jaxp13+"/> + <exclude name="**/*XPathRegexAssert.java" unless="regexp.present"/> + </javac> + </target> + + <target name="test" depends="compile" + description="runs the tests"> + <junit printsummary="yes" haltonfailure="no" fork="${junit.fork}" + forkMode="perBatch" failureproperty="tests.failed"> + <sysproperty key="basedir" value="${basedir}"/> + <sysproperty key="user.dir" value="${basedir}"/> + <!-- + <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" + value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> + <sysproperty key="javax.xml.parsers.SAXParserFactory" + value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> + <sysproperty key="javax.xml.transform.TransformerFactory" + value="org.apache.xalan.processor.TransformerFactoryImpl"/> + --> + <classpath> + <pathelement location="${out.dir}"/> + <pathelement location="${test.out.dir}"/> + <pathelement location="${xmlxsl.lib}"/> + <pathelement location="${junit.lib}"/> + <pathelement path="${java.class.path}"/> + </classpath> + <formatter type="xml"/> + <batchtest todir="${test.report.dir}"> + <fileset dir="${test.dir}/java"> + <include name="**/test_*.java"/> + <exclude name="**/jaxp13/**" unless="jaxp13+.impl"/> + </fileset> + </batchtest> + </junit> + + <junitreport todir="${test.report.dir}"> + <fileset dir="${test.report.dir}"> + <include name="TEST-*.xml"/> + </fileset> + <report format="frames" todir="${test.report.dir}/html"/> + </junitreport> + + <fail if="tests.failed">Some tests failed</fail> + </target> + + <target name="docs" + depends="create-users-guide,javadocs,-site" + description="creates the documentation bundle"/> + + <target name="javadocs" depends="-init" + description="creates the API documentation"> + <delete includeEmptyDirs="true" dir="${docs.dir}/api"/> + <javadoc destdir="${docs.dir}/api" + overview="${src.dir}/java/overview.html" + windowtitle="XMLUnit Documentation" + footer="<p><a href="http://xmlunit.sourceforge.net/">XMLUnit</a> is hosted by sourceforge.net</p>"> + <group title="XMLUnit v${xmlunit.version}" + packages="org.custommonkey.xmlunit*"/> + <fileset dir="${src.dir}/java"> + <include name="org/custommonkey/**/*.java"/> + </fileset> + <classpath> + <fileset dir="${lib.dir}"> + <include name="*.jar"/> + </fileset> + <pathelement path="${java.class.path}"/> + </classpath> + </javadoc> + </target> + + <target name="-site" depends="-init"> + <copy todir="${docs.dir}"> + <fileset dir="${src.dir}/site"> + <include name="*.html"/> + <include name="*.png"/> + </fileset> + </copy> + </target> + + <target name="jar" depends="compile" + description="creates jar, Maven2 POM and Ivy file"> + <jar jarfile="${lib.dir}/xmlunit-${xmlunit.version}.jar" + basedir="${out.dir}" + /> + + <tstamp> + <format property="ivy.publication.datetime" pattern="yyyyMMddHHmmss"/> + </tstamp> + + <copy todir="${lib.dir}"> + <fileset dir="${src.dir}/etc"> + <include name="xmlunit.pom"/> + <include name="xmlunit-ivy.xml"/> + <include name="xmlunit-maven-metadata.xml"/> + </fileset> + <mapper type="glob" from="xmlunit*" to="xmlunit-${xmlunit.version}*"/> + <filterset> + <filter token="VERSION" value="${xmlunit.version}"/> + <filter token="DATE" value="${ivy.publication.datetime}"/> + <filter token="DESCRIPTION" value="XMLUnit compares a control XML document to a test document or the result of a transformation, validates documents, and compares the results of XPath expressions."/> + <filter token="LICENSE" value="BSD License"/> + <filter token="LICENSE_URL" value="http://xmlunit.svn.sourceforge.net/viewvc/*checkout*/xmlunit/trunk/xmlunit/LICENSE.txt"/> + <filter token="GROUP" value="xmlunit"/> + <filter token="ARTIFACT" value="xmlunit"/> + <filter token="TYPE" value="jar"/> + </filterset> + </copy> + </target> + + <target name="Gump" depends="test,jar"/> + + <target name="bindist" depends="jar,test,docs"> + <zip zipfile="${dist.dir}/xmlunit-${xmlunit.version}-bin.zip"> + <zipfileset prefix="xmlunit-${xmlunit.version}/lib" + dir="${lib.dir}"/> + <zipfileset prefix="xmlunit-${xmlunit.version}/docs" + dir="${docs.dir}"/> + <zipfileset prefix="xmlunit-${xmlunit.version}" dir="."> + <include name="KEYS"/> + <include name="LICENSE.txt"/> + <include name="README.txt"/> + </zipfileset> + </zip> + </target> + + <target name="srcdist" depends="-init,create-users-guide"> + <zip zipfile="${dist.dir}/xmlunit-${xmlunit.version}-src.zip"> + <zipfileset prefix="xmlunit-${xmlunit.version}" dir="."> + <include name="*.xml"/> + <include name="${src.dir}/"/> + <include name="${test.dir}/"/> + <include name="KEYS"/> + <include name="LICENSE.txt"/> + <include name="README.txt"/> + <exclude name="**/csharp/**"/> + </zipfileset> + <zipfileset dir="${userguide.docs.dir}" + prefix="xmlunit-${xmlunit.version}/userguide"/> + </zip> + </target> + + <target name="dist" + depends="bindist,srcdist,compile-userguide-examples" + description="creates the distribution files"> + <checksum algorithm="md5"> + <fileset dir="${dist.dir}"> + <include name="*.zip"/> + </fileset> + </checksum> + <checksum algorithm="sha1"> + <fileset dir="${dist.dir}"> + <include name="*.zip"/> + </fileset> + </checksum> + </target> + + <target name="compile-userguide-examples" depends="compile"> + <mkdir dir="${userguide.out.dir}"/> + <javac srcdir="src/user-guide" includes="org/" + destdir="${userguide.out.dir}" source="1.3" target="1.2"> + <classpath> + <pathelement location="${junit.lib}"/> + <pathelement location="${out.dir}"/> + </classpath> + </javac> + <delete dir="${userguide.out.dir}"/> + </target> +</project> Deleted: tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml =================================================================== --- branches/xmlunit-1.x/src/etc/xmlunit-ivy.xml 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -1,46 +0,0 @@ -<?xml version="1.0"?> -<!-- -Copyright (c) 2007-2008, Jeff Martin, Tim Bacon -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of the xmlunit.sourceforge.net nor the names - of its contributors may be used to endorse or promote products - derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ---> -<ivy-module version="1.3"> - <info organisation="@GROUP@" - module="@ARTIFACT@" - revision="@VERSION@" - publication="@DATE@"> - <license name="@LICENSE@" - url="@LICENSE_URL@"/> - <description homepage="http://xmlunit.sourceforge.net/">@DESCRIPTION@</description> - </info> - <publications> - <artifact name="@ARTIFACT@" type="@TYPE@"/> - </publications> -</ivy-module> Copied: tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml (from rev 518, branches/xmlunit-1.x/src/etc/xmlunit-ivy.xml) =================================================================== --- tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml (rev 0) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit-ivy.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,46 @@ +<?xml version="1.0"?> +<!-- +Copyright (c) 2007-2013, Jeff Martin, Tim Bacon +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the xmlunit.sourceforge.net nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +--> +<ivy-module version="1.3"> + <info organisation="@GROUP@" + module="@ARTIFACT@" + revision="@VERSION@" + publication="@DATE@"> + <license name="@LICENSE@" + url="@LICENSE_URL@"/> + <description homepage="http://xmlunit.sourceforge.net/">@DESCRIPTION@</description> + </info> + <publications> + <artifact name="@ARTIFACT@" type="@TYPE@"/> + </publications> +</ivy-module> Deleted: tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml =================================================================== --- branches/xmlunit-1.x/src/etc/xmlunit-maven-metadata.xml 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -1,47 +0,0 @@ -<?xml version="1.0"?> -<!-- -Copyright (c) 2007-2008, Jeff Martin, Tim Bacon -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of the xmlunit.sourceforge.net nor the names - of its contributors may be used to endorse or promote products - derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ---> -<metadata> - <groupId>@GROUP@</groupId> - <artifactId>@ARTIFACT@</artifactId> - <version>@VERSION@</version> - <versioning> - <versions> - <version>0.8</version> - <version>1.0</version> - <version>1.1</version> - <version>1.2</version> - <version>@VERSION@</version> - </versions> - </versioning> -</metadata> Copied: tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml (from rev 518, branches/xmlunit-1.x/src/etc/xmlunit-maven-metadata.xml) =================================================================== --- tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml (rev 0) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit-maven-metadata.xml 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,48 @@ +<?xml version="1.0"?> +<!-- +Copyright (c) 2007-2013, Jeff Martin, Tim Bacon +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the xmlunit.sourceforge.net nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +--> +<metadata> + <groupId>@GROUP@</groupId> + <artifactId>@ARTIFACT@</artifactId> + <version>@VERSION@</version> + <versioning> + <versions> + <version>0.8</version> + <version>1.0</version> + <version>1.1</version> + <version>1.2</version> + <version>1.3</version> + <version>@VERSION@</version> + </versions> + </versioning> +</metadata> Deleted: tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom =================================================================== --- branches/xmlunit-1.x/src/etc/xmlunit.pom 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom 2013-02-07 05:31:14 UTC (rev 519) @@ -1,68 +0,0 @@ -<?xml version="1.0"?> -<!-- -Copyright (c) 2007-2008, Jeff Martin, Tim Bacon -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of the xmlunit.sourceforge.net nor the names - of its contributors may be used to endorse or promote products - derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ---> - -<!-- - - This POM is not usable as means to build XMLUnit with Maven2, it is - a minimal POM to allow XMLUnit's artifacts to be added to a Maven - repository. - ---> -<project> - <modelVersion>4.0.0</modelVersion> - <groupId>@GROUP@</groupId> - <artifactId>@ARTIFACT@</artifactId> - <packaging>@TYPE@</packaging> - <name>XMLUnit for Java</name> - <version>@VERSION@</version> - <url>http://xmlunit.sourceforge.net/</url> - <description>@DESCRIPTION@</description> - <licenses> - <license> - <name>@LICENSE@</name> - <url>@LICENSE_URL@</url> - </license> - </licenses> - <scm> - <url>http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/</url> - </scm> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - <optional>true</optional> - </dependency> - </dependencies> -</project> Copied: tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom (from rev 518, branches/xmlunit-1.x/src/etc/xmlunit.pom) =================================================================== --- tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom (rev 0) +++ tags/XMLUnit-Java-1.4/src/etc/xmlunit.pom 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,68 @@ +<?xml version="1.0"?> +<!-- +Copyright (c) 2007-2013, Jeff Martin, Tim Bacon +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the xmlunit.sourceforge.net nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +--> + +<!-- + + This POM is not usable as means to build XMLUnit with Maven2, it is + a minimal POM to allow XMLUnit's artifacts to be added to a Maven + repository. + +--> +<project> + <modelVersion>4.0.0</modelVersion> + <groupId>@GROUP@</groupId> + <artifactId>@ARTIFACT@</artifactId> + <packaging>@TYPE@</packaging> + <name>XMLUnit for Java</name> + <version>@VERSION@</version> + <url>http://xmlunit.sourceforge.net/</url> + <description>@DESCRIPTION@</description> + <licenses> + <license> + <name>@LICENSE@</name> + <url>@LICENSE_URL@</url> + </license> + </licenses> + <scm> + <url>http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/</url> + </scm> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <optional>true</optional> + </dependency> + </dependencies> +</project> Deleted: tags/XMLUnit-Java-1.4/src/site/index.html =================================================================== --- branches/xmlunit-1.x/src/site/index.html 2013-02-03 15:05:33 UTC (rev 517) +++ tags/XMLUnit-Java-1.4/src/site/index.html 2013-02-07 05:31:14 UTC (rev 519) @@ -1,143 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> - <title><XmlUnit/></title> - <meta http-equiv="content-type" - content="text/html; charset=ISO-8859-1"> - <meta name="keywords" - content="unit testing, test driven development, xml, xmlunit, junit, nunit"> - <style type="text/css"> - body{font-family: Helvetica, Arial, sans-serif} - code{font-style: italic} - </style> -</head> -<body> -<table width="100%" height="100%" border="0"> - <tbody> - <tr> - <td colspan="2"><img align="left" src="xmlunit.png" - alt="<xml-unit/>" width="331" height="100"> <a href="http://sourceforge.net/projects/xmlunit"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=23187&type=13" width="120" height="30" border="0" alt="Get XML Unit at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a><br> - <h1>XMLUnit - JUnit and NUnit testing for XML</h1> - </td> - </tr> - <tr> - <td valign="top" colspan="2"> - <p>For those of you who've got into it you'll know that test -driven development is great. It gives you the confidence to change code -safe in the knowledge that if something breaks you'll know about it. -Except for those bits you don't know how to test. Until now XML has -been one of them. Oh sure you can use <code><b>"<stuff></stuff>"</b>.equals(<b>"<stuff></stuff>"</b>);</code> -but is that really gonna work when some joker decides to output a <code><b><stuff/></b></code>? --- damned right it's not ;-)</p> - <p>XML can be used for just about anything so deciding if two -documents are equal to each other isn't as easy as a character for -character match. Sometimes</p> - <table bgcolor="black"> - <tbody> - <tr> - <td bgcolor="white"> - <pre><stuff-doc><br> <stuff><br> Stuff Stuff Stuff<br> </stuff><br> <more-stuff><br> Some More Stuff<br> </more-stuff><br></stuff-doc> </pre> - </td> - <td bgcolor="white">equals</td> - <td bgcolor="white"> - <pre><stuff-doc><br> <more-stuff><br> Some More Stuff</more-stuff><br> <stuff>Stuff Stuff Stuff</stuff><br></stuff-doc> </pre> - </td> - </tr> - </tbody> - </table> - <p>and sometimes it doesn't... With XMLUnit you get the control, -and you get to decide.</p> - </td> - </tr> - <tr> - <td> - <h2>XMLUnit for Java</h2> - </td> - <td width="240"> <a href="http://www.junit.org/"><img - src="http://www.junit.org/images/junitlogo.gif" alt="JUnit.org" - border="0"></a> </td> - </tr> - <tr> - <td colspan="2"> - <p>The current stable release is <a - href="http://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=605991">XMLUnit - 1.2</a>, June 2008.</p> - <p>XMLUnit for Java provides two JUnit extension classes, <code>XMLAssert</code> -and <code>XMLTestCase</code>, -and a set of supporting classes (e.g. <code>Diff</code>, <code>DetailedDiff</code>,<code>Transform</code>,<code>SimpleXpathEngine</code>,<code>Validator</code>,<code>NodeTest</code>) -that allow assertions to be made about:</p> - <ul> - <li>The differences between two pieces of XML</li> - <li>The outcome of transforming a piece of XML using XSLT</li> - <li>The evaluation of an XPath expression on a piece of XML</li> - <li>The validity of a piece of XML</li> - <li>Individual nodes in a piece of XML that are exposed by DOM -Traversal</li> - </ul> - <p>XMLUnit for Java can also treat HTML content (even -badly-formed HTML) as valid XML to allow these assertions to be made -about the content of web pages too.</p> - <table border="0" cellspacing="5" cellpadding="5"> - <tbody> - <tr> - <td>Read the User's Guide (<a - href="userguide/XMLUnit-Java.pdf">PDF</a> or <a - href="userguide/html/index.html">HTML</a>)</td> - <td><a href="example.html">See some example code</a></td> - <td><a href="api/index.html">Browse the Javadocs</a></td> - <td><a - href="http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/">Visit -the Subversion repository</a> </td> - </tr> - </tbody> - </table> - </td> - </tr> - <tr> - <td> - <h2>XMLUnit for .Net</h2> - </td> - <td width="240"> <a - href="http://nunit.org/"><img src="http://nunit.org/img/logo.gif" - alt="NUnit.org" border="0"></a> </td> - </tr> - <tr> - <td colspan="2"> - <p>The current release is <a - href="https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=91308">XmlUnit -.Net 0.3.1</a>, February 2008</p> - <p>XMLUnit for .Net provides NUnit extension classes written in -C#, e.g. <code>XmlAssertion</code> and <code>XmlDiff</code>, that allow -assertions to be made about the differences between two pieces of XML, -the validity of a piece of XML, the evaluation of an XPath expression -on a piece of XML, and the result of an XSL Transform.<br> - </p> - <p>Please be aware that the .Net code base is not as advanced as its Java -counterpart, in particular there is currently no explicit support for namespaces.</p> - </td> - </tr> - <tr> - <td colspan="2"> - <h2>News</h2> - <p> RSS feeds are available for <a - href="http://sourceforge.net/export/rss2_projnews.php?group_id=23187&rss_fulltext=1&go"><img - src="https://images.sourceforge.net/images/xml.png" border="0" - alt="RSS feed">Project news releases</a> and <a - href="http://sourceforge.net/export/rss2_projfiles.php?group_id=23187&go"><img - src="https://images.sourceforge.net/images/xml.png" border="0" - alt="RSS feed">Project file releases</a> .</p> - <p> An archive of the project news is available <a - href="http://sourceforge.net/news/?group_id=23187">here</a>. </p> - </td> - </tr> - <tr> - <td valign="bottom" align="right" colspan="2"> - <p style="font-size: smaller;">Brought to you by <a - href="http://coachspot.blogspot.com/">Tim Bacon</a> and <a - href="http://www.custommonkey.org/">Jeff Martin</a></p> - </td> - </tr> - </tbody> -</table> -</body> -</html> Copied: tags/XMLUnit-Java-1.4/src/site/index.html (from rev 518, branches/xmlunit-1.x/src/site/index.html) =================================================================== --- tags/XMLUnit-Java-1.4/src/site/index.html (rev 0) +++ tags/XMLUnit-Java-1.4/src/site/index.html 2013-02-07 05:31:14 UTC (rev 519) @@ -0,0 +1,141 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> + <title><XmlUnit/></title> + <meta http-equiv="content-type" + content="text/html; charset=ISO-8859-1"> + <meta name="keywords" + content="unit testing, test driven development, xml, xmlunit, junit, nunit"> + <style type="text/css"> + body{font-family: Helvetica, Arial, sans-serif} + code{font-style: italic} + </style> +</head> +<body> +<table width="100%" height="100%" border="0"> + <tbody> + <tr> + <td colspan="2"><img align="left" src="xmlunit.png" + alt="<xml-unit/>" width="331" height="100"> <a href="http://sourceforge.net/projects/xmlunit"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=23187&type=13" width="120" height="30" border="0" alt="Get XML Unit at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a><br> + <h1>XMLUnit - JUnit and NUnit testing for XML</h1> + </td> + </tr> + <tr> + <td valign="top" colspan="2"> + <p>For those of you who've got into it you'll know that test +driven development is great. It gives you the confidence to change code +safe in the knowledge that if something breaks you'll know about it. +Except for those bits you don't know how to test. Until now XML has +been one of them. Oh sure you can use <code><b>"<stuff></stuff>"</b>.equals(<b>"<stuff></stuff>"</b>);</code> +but is that really gonna work when some joker decides to output a <code><b><stuff/></b></code>? +-- damned right it's not ;-)</p> + <p>XML can be used for just about anything so deciding if two +documents are equal to each other isn't as easy as a character for +character match. Sometimes</p> + <table bgcolor="black"> + <tbody> + <tr> + <td bgcolor="white"> + <pre><stuff-doc><br> <stuff><br> Stuff Stuff Stuff<br> </stuff><br> <more-stuff><br> Some More Stuff<br> </more-stuff><br></stuff-doc> </pre> + </td> + <td bgcolor="white">equals</td> + <td bgcolor="white"> + <pre><stuff-doc><br> <more-stuff><br> Some More Stuff</more-stuff><br> <stuff>Stuff Stuff Stuff</stuff><br></stuff-doc> </pre> + </td> + </tr> + </tbody> + </table> + <p>and sometimes it doesn't... With XMLUnit you get the control, +and you get to decide.</p> + </td> + </tr> + <tr> + <td> + <h2>XMLUnit for Java</h2> + </td> + <td width="240"> <a href="http://www.junit.org/"><img + src="http://www.junit.org/images/junitlogo.gif" alt="JUnit.org" + border="0"></a> </td> + </tr> + <tr> + <td colspan="2"> + <p>The current stable release is XMLUnit 1.4, February 2013.</p> + <p>XMLUnit for Java provides two JUnit extension classes, <code>XMLAssert</code> +and <code>XMLTestCase</code>, +and a set of supporting classes (e.g. <code>Diff</code>, <code>DetailedDiff</code>,<code>Transform</code>,<code>SimpleXpathEngine</code>,<code>Validator</code>,<code>NodeTest</code>) +that allow assertions to be made about:</p> + <ul> + <li>The differences between two pieces of XML</li> + <li>The outcome of transforming a piece of XML using XSLT</li> + <li>The evaluation of an XPath expression on a piece of XML</li> + <li>The validity of a piece of XML</li> + <li>Individual nodes in a piece of XML that are exposed by DOM +Traversal</li> + </ul> + <p>XMLUnit for Java can also treat HTML content (even +badly-formed HTML) as valid XML to allow these assertions to be made +about the content of web pages too.</p> + <table border="0" cellspacing="5" cellpadding="5"> + <tbody> + <tr> + <td>Read the User's Guide (<a + href="userguide/XMLUnit-Java.pdf">PDF</a> or <a + href="userguide/html/index.html">HTML</a>)</td> + <td><a href="example.html">See some example code</a></td> + <td><a href="api/index.html">Browse the Javadocs</a></td> + <td><a + href="http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/">Visit +the Subversion repository</a> </td> + </tr> + </tbody> + </table> + </td> + </tr> + <tr> + <td> + <h2>XMLUnit for .Net</h2> + </td> + <td width="240"> <a + href="http://nunit.org/"><img src="http://nunit.org/img/logo.gif" + alt="NUnit.org" border="0"></a> </td> + </tr> + <tr> + <td colspan="2"> + <p>The current release is <a + href="https://sourceforge.net/projects/xmlunit/files/xmlunit%20for%20.Net/XMLUnit%20for%20.NET%200.4/">XmlUnit +.Net 0.4</a>, April 2009</p> + <p>XMLUnit for .Net provides NUnit extension classes written in +C#, e.g. <code>XmlAssertion</code> and <code>XmlDiff</code>, that allow +assertions to be made about the differences between two pieces of XML, +the validity of a piece of XML, the evaluation of an XPath expression +on a piece of XML, and the result of an XSL Transform.<br> + </p> + <p>Please be aware that the .Net code base is not as advanced as its Java +counterpart, in particular there is currently no explicit support for namespaces.</p> + </td> + </tr> + <tr> + <td colspan="2"> + <h2>News</h2> + <p> RSS feeds are available for <a + href="http://sourceforge.net/export/rss2_projnews.php?group_id=23187&rss_fulltext=1&go"><img + src="https://images.sourceforge.net/images/xml.png" border="0" + alt="RSS feed">Project news releases</a> and <a + href="http://sourceforge.net/export/rss2_projfiles.php?group_id=23187&go"><img + src="https://images.sourceforge.net/images/xml.png" border="0" + alt="RSS feed">Project file releases</a> .</p> + <p> An archive of the project news is available <a + href="http://sourceforge.net/news/?group_id=23187">here</a>. </p> + </td> + </tr> + <tr> + <td valign="bottom" align="right" colspan="2"> + <p style="font-size: smaller;">Brought to you by <a + href="http://coachspot.blogspot.com/">Tim Bacon</a> and <a + href="http://www.custommonkey.org/">Jeff Martin</a></p> + </td> + </tr> + </tbody> +</table> +</body> +</html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2013-09-16 10:52:47
|
Revision: 544 http://sourceforge.net/p/xmlunit/code/544 Author: bodewig Date: 2013-09-16 10:52:45 +0000 (Mon, 16 Sep 2013) Log Message: ----------- Modified Paths: -------------- tags/XMLUnit-Java-1.5/build.xml tags/XMLUnit-Java-1.5/src/site/index.html tags/XMLUnit-Java-1.5/src/user-guide/XMLUnit-Java.xml Added Paths: ----------- tags/XMLUnit-Java-1.5/ Modified: tags/XMLUnit-Java-1.5/build.xml =================================================================== --- branches/xmlunit-1.x/build.xml 2013-09-12 15:11:18 UTC (rev 543) +++ tags/XMLUnit-Java-1.5/build.xml 2013-09-16 10:52:45 UTC (rev 544) @@ -37,7 +37,7 @@ <property file="build.properties"/> <!-- Version --> - <property name="xmlunit.version" value="1.5alpha"/> + <property name="xmlunit.version" value="1.5"/> <!-- some locations --> <property name="src.dir" value="src"/> Modified: tags/XMLUnit-Java-1.5/src/site/index.html =================================================================== --- branches/xmlunit-1.x/src/site/index.html 2013-09-12 15:11:18 UTC (rev 543) +++ tags/XMLUnit-Java-1.5/src/site/index.html 2013-09-16 10:52:45 UTC (rev 544) @@ -59,7 +59,7 @@ </tr> <tr> <td colspan="2"> - <p>The current stable release is XMLUnit 1.4, February 2013.</p> + <p>The current stable release is XMLUnit 1.5, September 2013.</p> <p>XMLUnit for Java provides two JUnit extension classes, <code>XMLAssert</code> and <code>XMLTestCase</code>, and a set of supporting classes (e.g. <code>Diff</code>, <code>DetailedDiff</code>,<code>Transform</code>,<code>SimpleXpathEngine</code>,<code>Validator</code>,<code>NodeTest</code>) Modified: tags/XMLUnit-Java-1.5/src/user-guide/XMLUnit-Java.xml =================================================================== --- branches/xmlunit-1.x/src/user-guide/XMLUnit-Java.xml 2013-09-12 15:11:18 UTC (rev 543) +++ tags/XMLUnit-Java-1.5/src/user-guide/XMLUnit-Java.xml 2013-09-16 10:52:45 UTC (rev 544) @@ -76,6 +76,11 @@ <date>February 2013</date> <revremark>Documentation for XMLUnit Java 1.4</revremark> </revision> + <revision> + <revnumber>1.5</revnumber> + <date>September 2013</date> + <revremark>Documentation for XMLUnit Java 1.5</revremark> + </revision> </revhistory> </articleinfo> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2014-12-31 15:02:01
|
Revision: 587 http://sourceforge.net/p/xmlunit/code/587 Author: bodewig Date: 2014-12-31 15:01:50 +0000 (Wed, 31 Dec 2014) Log Message: ----------- tag XMLUnit Java 1.6 Modified Paths: -------------- tags/XMLUnit-Java-1.6/build.xml Added Paths: ----------- tags/XMLUnit-Java-1.6/ Modified: tags/XMLUnit-Java-1.6/build.xml =================================================================== --- trunk/build.xml 2014-12-31 12:25:32 UTC (rev 586) +++ tags/XMLUnit-Java-1.6/build.xml 2014-12-31 15:01:50 UTC (rev 587) @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!-- -Copyright (c) 2001-2013, Jeff Martin, Tim Bacon +Copyright (c) 2001-2014, Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without @@ -37,7 +37,7 @@ <property file="build.properties"/> <!-- Version --> - <property name="xmlunit.version" value="1.6alpha"/> + <property name="xmlunit.version" value="1.6"/> <!-- some locations --> <property name="src.dir" value="src"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |