mirror of https://github.com/apache/maven.git
fix a crappy error message. It said that a POM referenced itself, when the problem was that the expression referenced itself.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@475132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e5a230eb86
commit
8b0f212ffa
|
@ -166,7 +166,7 @@ public class RegexBasedModelInterpolator
|
||||||
// if the expression refers to itself, skip it.
|
// if the expression refers to itself, skip it.
|
||||||
if ( String.valueOf( value ).indexOf( wholeExpr ) > -1 )
|
if ( String.valueOf( value ).indexOf( wholeExpr ) > -1 )
|
||||||
{
|
{
|
||||||
throw new ModelInterpolationException( wholeExpr, model.getId() + " references itself." );
|
throw new ModelInterpolationException( wholeExpr, "Expression value '" + value + "' references itself in '" + model.getId() + "'." );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( value != null )
|
if ( value != null )
|
||||||
|
@ -192,4 +192,4 @@ public class RegexBasedModelInterpolator
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue