From ac596e1811addb9f45dfea04256f5675ce53eeff Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 10 Mar 2009 20:19:50 +0000 Subject: [PATCH] [MNG-3760] Support property ${baseurl} to get RFC-compliant URL of project base directory git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@752241 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/builder/PomTransformer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java b/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java index edd41471ad..df059c9f0c 100644 --- a/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java +++ b/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java @@ -663,6 +663,11 @@ public class PomTransformer standardInterpolatorProperties.add( new InterpolatorProperty( "${basedir}", basedir, PomInterpolatorTag.PROJECT_PROPERTIES.name() ) ); standardInterpolatorProperties.add( new InterpolatorProperty( "${pom.basedir}", basedir, PomInterpolatorTag.PROJECT_PROPERTIES.name() ) ); + String baseuri = dm.getProjectDirectory().toURI().toString(); + standardInterpolatorProperties.add( new InterpolatorProperty( "${project.baseUri}", baseuri, + PomInterpolatorTag.PROJECT_PROPERTIES.name() ) ); + standardInterpolatorProperties.add( new InterpolatorProperty( "${pom.baseUri}", baseuri, + PomInterpolatorTag.PROJECT_PROPERTIES.name() ) ); } for ( ModelProperty mp : modelProperties )