org.apache.maven.plugin.eclipse
Class EclipseCleanMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.eclipse.EclipseCleanMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
MyEclipseCleanMojo, RadCleanMojo

public class EclipseCleanMojo
extends AbstractMojo

Deletes the .project, .classpath, .wtpmodules files and .settings folder used by Eclipse.

Is defined by the goal name:
clean

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
EclipseCleanMojo()
           
 
Method Summary
protected  void cleanExtras()
           
protected  void delete(File f)
          Delete a file, handling log messages and exceptions
 void execute()
           
 File getBasedir()
          Getter for basedir.
 String getPackaging()
           
 void setBasedir(File basedir)
          Setter for basedir.
 void setPackaging(String packaging)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseCleanMojo

public EclipseCleanMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Throws:
MojoExecutionException
See Also:
Mojo.execute()

cleanExtras

protected void cleanExtras()
                    throws MojoExecutionException
Throws:
MojoExecutionException

delete

protected void delete(File f)
               throws MojoExecutionException
Delete a file, handling log messages and exceptions

Parameters:
f - File to be deleted
Throws:
MojoExecutionException - only if a file exists and can't be deleted

getBasedir

public File getBasedir()
Getter for basedir.

Returns:
Returns the basedir.

setBasedir

public void setBasedir(File basedir)
Setter for basedir.

Parameters:
basedir - The basedir to set.

getPackaging

public String getPackaging()
Returns:
the packaging

setPackaging

public void setPackaging(String packaging)
Parameters:
packaging - the packaging to set


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.