maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r688829 - /maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
Date Mon, 25 Aug 2008 19:12:38 GMT
Author: sisbell
Date: Mon Aug 25 12:12:37 2008
New Revision: 688829

URL: http://svn.apache.org/viewvc?rev=688829&view=rev
Log:
Do not replace entity references. Had some pom parsing breaking on unknown entities.

Modified:
    maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java

Modified: maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java?rev=688829&r1=688828&r2=688829&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
(original)
+++ maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
Mon Aug 25 12:12:37 2008
@@ -77,6 +77,8 @@
 
         List<ModelProperty> modelProperties = new ArrayList<ModelProperty>();
         XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
+        xmlInputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, "false");
+
         Uri uri = new Uri( baseUri );
         String tagName = baseUri;
         String tagValue = null;
@@ -86,6 +88,7 @@
         try
         {
             xmlStreamReader = xmlInputFactory.createXMLStreamReader( inputStream );
+            
             Map<String, String> attributes = new HashMap<String, String>();
             for ( ; ; xmlStreamReader.next() )
             {



Mime
View raw message