All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.plugin.eclipse.MyEclipseCleanMojo Maven / Gradle / Ivy

Go to download

The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder) from a POM.

There is a newer version: 2.10
Show newest version
package org.apache.maven.plugin.eclipse;

import java.io.File;

import org.apache.maven.plugin.MojoExecutionException;

/**
 * Deletes configuration files used by MyEclipse
 * 
 * @author Olivier Jacob
 * @goal myeclipse-clean
 * @since 2.5
 * @phase
 */
public class MyEclipseCleanMojo
    extends EclipseCleanMojo
{
    /**
     * @throws MojoExecutionException
     */
    protected void cleanExtras()
        throws MojoExecutionException
    {
        delete( new File( getBasedir(), ".mymetadata" ) );
        delete( new File( getBasedir(), ".mystrutsdata" ) );
        delete( new File( getBasedir(), ".myhibernatedata" ) );
        delete( new File( getBasedir(), ".springBeans" ) );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy