Author: brianf Date: Sat Jul 7 18:47:04 2007 New Revision: 554292 URL: http://svn.apache.org/viewvc?view=rev&rev=554292 Log: Applied patch for MECLIPSE-231
Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java?view=diff&rev=554292&r1=554291&r2=554292 ============================================================================== --- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java (original) +++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java Sat Jul 7 18:47:04 2007 @@ -27,7 +27,7 @@ /** * Deletes the .project, .classpath, .wtpmodules files and .settings folder used by Eclipse. - * + * * @goal clean */ public class EclipseCleanMojo @@ -92,7 +92,7 @@ /** * Skip the operation when true. - * + * * @parameter expression="${eclipse.skip}" default-value="false" */ private boolean skip; @@ -109,13 +109,6 @@ return; } - // since the eclipse plugin doesn't generate configuration for POM projects, it should neither delete it - if ( "pom".equals( packaging ) ) //$NON-NLS-1$ - { - getLog().info( Messages.getString( "EclipsePlugin.pompackaging" ) ); //$NON-NLS-1$ - return; - } - delete( new File( basedir, FILE_DOT_PROJECT ) ); delete( new File( basedir, FILE_DOT_CLASSPATH ) ); delete( new File( basedir, FILE_DOT_WTPMODULES ) ); @@ -142,7 +135,7 @@ /** * Delete a file, handling log messages and exceptions - * + * * @param f File to be deleted * @throws MojoExecutionException only if a file exists and can't be deleted */