Store the pom File object in the execution request instead of its path

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2007-10-24 20:07:08 +00:00
parent 324c1fcd1c
commit 64e0d64a56
2 changed files with 4 additions and 4 deletions

View File

@ -467,7 +467,7 @@ public class MavenEmbedder
// If the artifact handlers are not loaded up-front then this dependency element is not
// registered as an artifact and is not added to the classpath elements.
MavenProject project = readProject( new File( request.getPomFile() ) );
MavenProject project = readProject( request.getPom() );
Map handlers = findArtifactTypeHandlers( project );

View File

@ -199,9 +199,9 @@ public class DefaultMavenExecutionRequestPopulator
// look for the standard POM.
// ------------------------------------------------------------------------
if ( request.getPomFile() != null )
if ( request.getPom() != null )
{
request.setBaseDirectory( new File( request.getPomFile() ) );
request.setBaseDirectory( request.getPom() );
}
else if ( request.getBaseDirectory() != null )
{
@ -213,7 +213,7 @@ public class DefaultMavenExecutionRequestPopulator
pom = new File( request.getBaseDirectory(), Maven.POMv4 );
}
request.setPomFile( pom.getAbsolutePath() );
request.setPom( pom );
}
}