You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/03/24 20:21:46 UTC

svn commit: r757967 - /maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java

Author: bentmann
Date: Tue Mar 24 19:21:44 2009
New Revision: 757967

URL: http://svn.apache.org/viewvc?rev=757967&view=rev
Log:
o Used the same code path for testing as a real build would use

Modified:
    maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java

Modified: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java?rev=757967&r1=757966&r2=757967&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java (original)
+++ maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/PomConstructionTest.java Tue Mar 24 19:21:44 2009
@@ -1236,7 +1236,7 @@
     }
 
     private PomTestWrapper buildPomFromMavenProject( String pomPath, String... profileIds )
-        throws IOException
+        throws Exception
     {
         File pomFile = new File( testDirectory , pomPath );
         if ( pomFile.isDirectory() )
@@ -1252,8 +1252,7 @@
         }
 
         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 )