Index: test/java/org/apache/ivy/core/resolve/ResolveTest.java =================================================================== --- test/java/org/apache/ivy/core/resolve/ResolveTest.java (revision 628255) +++ test/java/org/apache/ivy/core/resolve/ResolveTest.java (working copy) @@ -237,6 +237,24 @@ assertTrue(report.hasError()); } + public void testResolveWithXmlEntities() throws Exception { + Ivy ivy = new Ivy(); + Throwable th = null; + try + { + ivy.configure(new File("test/repositories/xml-entities/ivysettings.xml").toURL()); + ResolveReport report = ivy.resolve(new File("test/repositories/xml-entities/ivy.xml").toURL(), + getResolveOptions(new String[] {"*"})); + assertNotNull(report); + assertFalse(report.hasError()); + } + catch(Throwable e) + { + th = e; + } + assertNull(th); + } + public void testResolveNoRevisionInPattern() throws Exception { // module1 depends on latest version of module2, for which there is no revision in the // pattern Index: test/repositories/xml-entities/foo.txt =================================================================== --- test/repositories/xml-entities/foo.txt (revision 0) +++ test/repositories/xml-entities/foo.txt (revision 0) @@ -0,0 +1,3 @@ + + + Index: test/repositories/xml-entities/bar.txt =================================================================== --- test/repositories/xml-entities/bar.txt (revision 0) +++ test/repositories/xml-entities/bar.txt (revision 0) @@ -0,0 +1 @@ + Index: test/repositories/xml-entities/ivy.xml =================================================================== --- test/repositories/xml-entities/ivy.xml (revision 0) +++ test/repositories/xml-entities/ivy.xml (revision 0) @@ -0,0 +1,29 @@ + + +]> + + + + + + + &foo; + Index: test/repositories/xml-entities/module1/ivy-1.0.xml =================================================================== --- test/repositories/xml-entities/module1/ivy-1.0.xml (revision 0) +++ test/repositories/xml-entities/module1/ivy-1.0.xml (revision 0) @@ -0,0 +1,25 @@ + + + + + + + + Index: test/repositories/xml-entities/ivysettings.xml =================================================================== --- test/repositories/xml-entities/ivysettings.xml (revision 0) +++ test/repositories/xml-entities/ivysettings.xml (revision 0) @@ -0,0 +1,33 @@ + + +]> + + &bar; + + + + + + + + + + Index: test/repositories/xml-entities/module2/ivy-2.0.xml =================================================================== --- test/repositories/xml-entities/module2/ivy-2.0.xml (revision 0) +++ test/repositories/xml-entities/module2/ivy-2.0.xml (revision 0) @@ -0,0 +1,28 @@ + + + + + + + + + + +