Author: fgiust
Date: Sun Oct 29 06:12:42 2006
New Revision: 468904

URL: http://svn.apache.org/viewvc?view=rev&rev=468904
Log:
creates the root eclipse dir if missing

Modified:
    
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java

Modified: 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java?view=diff&rev=468904&r1=468903&r2=468904
==============================================================================
--- 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java
 Sun Oct 29 06:12:42 2006
@@ -159,9 +159,13 @@
             eclipseDir = new File( eclipseDirString );
         }
 
-        if ( !eclipseDir.exists() || !eclipseDir.isDirectory() )
+        if ( eclipseDir.exists() && !eclipseDir.isDirectory() )
         {
             throw new MojoFailureException( "Invalid Eclipse directory: " + 
eclipseDir );
+        }
+        else if ( !eclipseDir.exists() )
+        {
+            eclipseDir.mkdirs();
         }
 
         for ( Iterator it = artifacts.iterator(); it.hasNext(); )


Reply via email to