org.apache.maven.plugin.eclipse
Class RadCleanMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.eclipse.EclipseCleanMojo
org.apache.maven.plugin.eclipse.RadCleanMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
@Mojo(name="rad-clean")
public class RadCleanMojo
- extends EclipseCleanMojo
Deletes the config files used by Rad-6. the files .j2ee and the file .websettings
- Author:
- Richard van Nieuwenhoven
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 |
RadCleanMojo
public RadCleanMojo()
cleanExtras
protected void cleanExtras()
throws MojoExecutionException
- Overrides:
cleanExtras
in class EclipseCleanMojo
- Throws:
MojoExecutionException
getProject
public MavenProject getProject()
- getter for the instancevarriable project.
- Returns:
- the maven project decriptor
setProject
public void setProject(MavenProject project)
- getter for the instancevarriable project.
- Parameters:
project
- the maven project decriptor
deleteJarArtifactsInDirectory
protected void deleteJarArtifactsInDirectory(File directory)
throws MojoExecutionException
- delete all Jar artifacts in the specified directory.
- Parameters:
directory
- to delete the jars from
- Throws:
MojoExecutionException
- only if a file exists and can't be deleted
deleteWarArtifactsInDirectory
protected void deleteWarArtifactsInDirectory(File directory)
throws MojoExecutionException
- delete all War artifacts in the specified directory (cleaning up EAR's for example).
- Parameters:
directory
- to delete the wars from
- Throws:
MojoExecutionException
- only if a file exists and can't be deleted
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.