You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by fg...@apache.org on 2006/10/29 15:12:43 UTC
svn commit: r468904 -
/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java
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(); )