From acdc5f96c568afad1096f134d7de29c6e79a514c Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 24 Mar 2009 19:21:44 +0000 Subject: [PATCH] o Used the same code path for testing as a real build would use git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757967 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/project/PomConstructionTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java b/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java index 030c8b3b03..53d4a971fb 100644 --- a/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java +++ b/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java @@ -1236,7 +1236,7 @@ public class PomConstructionTest } private PomTestWrapper buildPomFromMavenProject( String pomPath, String... profileIds ) - throws IOException + throws Exception { File pomFile = new File( testDirectory , pomPath ); if ( pomFile.isDirectory() ) @@ -1252,8 +1252,7 @@ public class PomConstructionTest } config.setGlobalProfileManager(new DefaultProfileManager(this.getContainer(), pCtx)); - return new PomTestWrapper( pomFile, mavenProjectBuilder.buildFromLocalPath( pomFile, null, null, null, - config, mavenProjectBuilder ) ); + return new PomTestWrapper( pomFile, mavenProjectBuilder.build( pomFile, config ) ); } private Model buildMixin( String mixinPath )