gnodet commented on code in PR #1061:
URL: https://github.com/apache/maven/pull/1061#discussion_r1152028179


##########
maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java:
##########
@@ -133,6 +134,21 @@ public Object getValue(String expression) {
             valueSources.add(new 
BuildTimestampValueSource(config.getBuildStartTime(), modelProperties));
         }
 
+        valueSources.add(new AbstractValueSource(false) {
+            @Override
+            public Object getValue(String expression) {
+                if ("rootdir".equals(expression)) {
+                    Path path = config.getRootdir();
+                    if (path != null) {
+                        return path.toString();
+                    }
+                    throw new IllegalArgumentException("Unable to find the 
root directory. "

Review Comment:
   Agreed, I'll fix them all.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to