org.apache.maven.plugin.eclipse
Class EclipseCleanMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.eclipse.EclipseCleanMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- MyEclipseCleanMojo, RadCleanMojo
public class EclipseCleanMojo
- extends org.apache.maven.plugin.AbstractMojo
Deletes the .project, .classpath, .wtpmodules files and .settings folder used by Eclipse.
- Is defined by the goal name:
- clean
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
EclipseCleanMojo
public EclipseCleanMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
Mojo.execute()
cleanExtras
protected void cleanExtras()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
delete
protected void delete(java.io.File f)
throws org.apache.maven.plugin.MojoExecutionException
- Delete a file, handling log messages and exceptions
- Parameters:
f
- File to be deleted
- Throws:
org.apache.maven.plugin.MojoExecutionException
- only if a file exists and can't be deleted
getBasedir
public java.io.File getBasedir()
- Getter for
basedir
.
- Returns:
- Returns the basedir.
setBasedir
public void setBasedir(java.io.File basedir)
- Setter for
basedir
.
- Parameters:
basedir
- The basedir to set.
getPackaging
public java.lang.String getPackaging()
- Returns:
- the packaging
setPackaging
public void setPackaging(java.lang.String packaging)
- Parameters:
packaging
- the packaging to set
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.