Modello pom parser fails if it contains an '&'. Put these in a CDATA.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@718451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-18 00:45:39 +00:00
parent ed4083c93f
commit 50bfa25053
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public String getValue()
public String getResolvedValue()
{
if( !uri.contains("#property") && resolvedValue != null && !resolvedValue.startsWith ("<![CDATA[")
&& (resolvedValue.contains( "=" ) || resolvedValue.contains( "<" )))
&& (resolvedValue.contains( "=" ) || resolvedValue.contains( "<" ) || resolvedValue.contains( "&" )))
{
resolvedValue = "<![CDATA[" + resolvedValue + "]]>";
}