If build property starts with another build property, don't attempt to resolve absolute path.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@726334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-12-14 02:17:02 +00:00
parent 444357358d
commit fafb133780
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ public class Interpolator {
if(mp.getUri().startsWith( ProjectUri.Build.xUri ) || mp.getUri().equals( ProjectUri.Reporting.outputDirectory ))
{
File file = new File(mp.getResolvedValue());
if( !file.isAbsolute() )
if( !file.isAbsolute() && !mp.getResolvedValue().startsWith("${project.build."))
{
buildDirectories.put(mp, new ModelProperty(mp.getUri(), new File(basedir, file.getPath()).getAbsolutePath()));
}