Fix: XML property values should not have CDATA sections.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@697914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-09-22 17:34:19 +00:00
parent e000c61519
commit 2ce56f8aa4
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public final class ModelProperty
*/
public String getResolvedValue()
{
if( resolvedValue != null && !resolvedValue.startsWith ("<![CDATA[")
if( !uri.contains("#property") && resolvedValue != null && !resolvedValue.startsWith ("<![CDATA[")
&& (resolvedValue.contains( "=" ) || resolvedValue.contains( "<" )))
{
resolvedValue = "<![CDATA[" + resolvedValue + "]]>";