maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r475133 - /maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
Date Wed, 15 Nov 2006 06:17:08 GMT
Author: brett
Date: Tue Nov 14 22:17:07 2006
New Revision: 475133

URL: http://svn.apache.org/viewvc?view=rev&rev=475133
Log:
merge r475132 from trunk - improvement to error reporting

Modified:
    maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java

Modified: maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java?view=diff&rev=475133&r1=475132&r2=475133
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
Tue Nov 14 22:17:07 2006
@@ -166,7 +166,7 @@
             // if the expression refers to itself, skip it.
             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 )
@@ -192,4 +192,4 @@
         return result;
     }
 
-}
\ No newline at end of file
+}



Mime
View raw message