Quiet down all the deprecated-expression stuff to debug log-level until we get serious about fixing this in poms.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@629240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-02-19 21:31:56 +00:00
parent f72505bc77
commit ed863374c5
1 changed files with 7 additions and 7 deletions

View File

@ -153,7 +153,7 @@ public class RegexBasedModelInterpolator
// Check for special expressions that should NOT be interpolated.
// See DefaultProjectBuilder and MNG-2124/MNG-1927.
if ( context.get( realExpr ) == null && context.containsKey( realExpr ) )
if ( ( context.get( realExpr ) == null ) && context.containsKey( realExpr ) )
{
continue;
}
@ -192,13 +192,13 @@ public class RegexBasedModelInterpolator
// Any expression, not just artifactId, version etc., but also scm.repository
// were evaluated against the model, even if there is no prefix.
// If the 2.1 strategy fails, try the legacy approach. If it yields a result, warn for it.
if ( value == null && prefix.length() == 0 )
if ( ( value == null ) && ( prefix.length() == 0 ) )
{
value = getValueFromModel( realExpr, model, wholeExpr, logger );
if ( isSnapshotModel && value != null && logger != null )
if ( isSnapshotModel && ( value != null ) && ( logger != null ) )
{
logger.warn( "Deprecated expression: " + wholeExpr + " - missing prefix. Use ${pom."
logger.debug( "Expression: " + wholeExpr + " is missing its prefix. Instead, use ${pom."
+ realExpr + "} (model: " + model.getId() + ")" );
}
}