org.apache.maven.plugin.eclipse
Class EclipseCleanMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.eclipse.EclipseCleanMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- MyEclipseCleanMojo, RadCleanMojo
@Mojo(name="clean")
public class EclipseCleanMojo
- extends AbstractMojo
Deletes the .project, .classpath, .wtpmodules files and .settings folder used by Eclipse.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 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–2015 The Apache Software Foundation. All rights reserved.