maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pg...@apache.org
Subject svn commit: r650196 - /maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
Date Mon, 21 Apr 2008 16:30:55 GMT
Author: pgier
Date: Mon Apr 21 09:30:44 2008
New Revision: 650196

URL: http://svn.apache.org/viewvc?rev=650196&view=rev
Log:
Small improvement to error handling.  If the local-repo does not exist, it should be created.

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

Modified: maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java?rev=650196&r1=650195&r2=650196&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
(original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
Mon Apr 21 09:30:44 2008
@@ -721,6 +721,11 @@
 
                 getLog().debug( "Using local repository: " + localRepoDir );
 
+                if ( ! localRepositoryPath.exists() )
+                {
+                    localRepositoryPath.mkdirs();
+                }
+                
                 request.setLocalRepositoryDirectory( localRepoDir );
             }
 



Mime
View raw message