Skip to content

Commit ee440d1

Browse files
committed
[MNG-7897] Support ${project.rootDirectory} in file profile activation
1 parent 9bc5cc8 commit ee440d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/ProfileActivationFilePathInterpolator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Object getValue(String expression) {
8181
interpolator.addValueSource(new AbstractValueSource(false) {
8282
@Override
8383
public Object getValue(String expression) {
84-
if ("rootDirectory".equals(expression)) {
84+
if ("project.rootDirectory".equals(expression)) {
8585
Path root = rootLocator.findMandatoryRoot(basedir);
8686
return root.toFile().getAbsolutePath();
8787
}

maven-model-builder/src/main/java/org/apache/maven/model/path/ProfileActivationFilePathInterpolator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Object getValue(String expression) {
8282
interpolator.addValueSource(new AbstractValueSource(false) {
8383
@Override
8484
public Object getValue(String expression) {
85-
if ("rootDirectory".equals(expression)) {
85+
if ("project.rootDirectory".equals(expression)) {
8686
Path base = basedir != null ? basedir.toPath() : null;
8787
Path root = rootLocator.findMandatoryRoot(base);
8888
return root.toFile().getAbsolutePath();

0 commit comments

Comments
 (0)