You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2008/05/31 13:42:27 UTC
svn commit: r662006 -
/maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Author: dennisl
Date: Sat May 31 04:42:27 2008
New Revision: 662006
URL: http://svn.apache.org/viewvc?rev=662006&view=rev
Log:
[MSITE-332] Unable to load parent project from a relative path: Could not find the model file '<dir>/pom.xml'. for project unknown
o Incorporate the fix for PLXUTILS-60 into the copy of XmlReader that still resides in maven-site-plugin.
Modified:
maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java?rev=662006&r1=662005&r2=662006&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java (original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java Sat May 31 04:42:27 2008
@@ -734,7 +734,7 @@
if ( bytesRead > 0 )
{
is.reset();
- BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog ) );
+ BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog.substring( 0, firstGT + 1 ) ) );
StringBuffer prolog = new StringBuffer();
String line = bReader.readLine();
while ( line != null )