You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2006/08/11 20:59:44 UTC

svn commit: r430859 - /maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java

Author: jdcasey
Date: Fri Aug 11 11:59:44 2006
New Revision: 430859

URL: http://svn.apache.org/viewvc?rev=430859&view=rev
Log:
Cleaning up output and fixing single-pom override parameter.

Modified:
    maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java

Modified: maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java?rev=430859&r1=430858&r2=430859&view=diff
==============================================================================
--- maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java (original)
+++ maven/sandbox/plugins/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java Fri Aug 11 11:59:44 2006
@@ -29,7 +29,6 @@
 import org.apache.maven.shared.invoker.MavenInvocationException;
 import org.apache.maven.shared.model.fileset.FileSet;
 import org.apache.maven.shared.model.fileset.util.FileSetManager;
-import org.apache.maven.wagon.PathUtils;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.cli.CommandLineException;
 
@@ -215,10 +214,16 @@
     private void runBuild( final String pom, final List failures )
         throws MojoExecutionException
     {
-        final File pomFile = new File( projectsDirectory, pom );
+        File pomFile = new File( pom );
+        
+        if ( !pomFile.isAbsolute() )
+        {
+            pomFile = new File( projectsDirectory, pom );
+        }
+        
         final File basedir = pomFile.getParentFile();
 
-        getLog().info( "Building: " + basedir );
+        getLog().info( "Building: " + pom );
 
         final File outputLog = new File( basedir, "target/build.log" );
 
@@ -513,7 +518,7 @@
 
                 if ( goals != null && !goals.isEmpty() )
                 {
-                    getLog().info( "Using goals specified in file: " + projectGoalList );
+                    getLog().debug( "Using goals specified in file: " + projectGoalList );
                     invocationGoals = goals;
                 }
             }
@@ -527,7 +532,7 @@
     {
         if ( pom != null && pom.exists() )
         {
-            return new String[]{ PathUtils.toRelative( projectsDirectory, pom.getAbsolutePath() ) };
+            return new String[]{ pom.getAbsolutePath() };
         }
         else
         {