o Fixed handling of releative paths

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-10-27 21:57:59 +00:00
parent 32d6c8699e
commit 30ef86e916
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class DefaultModelBuildingRequest
public DefaultModelBuildingRequest setPomFile( File pomFile )
{
this.pomFile = pomFile;
this.pomFile = ( pomFile != null ) ? pomFile.getAbsoluteFile() : null;
return this;
}

View File

@ -46,7 +46,7 @@ public class FileModelSource
{
throw new IllegalArgumentException( "no POM file specified" );
}
this.pomFile = pomFile;
this.pomFile = pomFile.getAbsoluteFile();
}
public InputStream getInputStream()

View File

@ -589,7 +589,7 @@
public void setPomFile( java.io.File pomFile )
{
this.pomFile = pomFile;
this.pomFile = ( pomFile != null ) ? pomFile.getAbsoluteFile() : null;
}
/**