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:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class RadCleanMojo
- extends EclipseCleanMojo
Deletes the config files used by Rad-6. the files .j2ee and the file .websettings
- Author:
- Richard van Nieuwenhoven
- Is defined by the goal name:
- rad-clean
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
cleanExtras()
|
protected void |
deleteJarArtifactsInDirectory(java.io.File directory)
delete all Jar artifacts in the specified directory. |
protected void |
deleteWarArtifactsInDirectory(java.io.File directory)
delete all War artifacts in the specified directory (cleaning up EAR's for example). |
org.apache.maven.project.MavenProject |
getProject()
getter for the instancevarriable project. |
void |
setProject(org.apache.maven.project.MavenProject project)
getter for the instancevarriable project. |
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 |
RadCleanMojo
public RadCleanMojo()
cleanExtras
protected void cleanExtras()
throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
cleanExtras
in class EclipseCleanMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
getProject
public org.apache.maven.project.MavenProject getProject()
- getter for the instancevarriable project.
- Returns:
- the maven project decriptor
setProject
public void setProject(org.apache.maven.project.MavenProject project)
- getter for the instancevarriable project.
- Parameters:
project
- the maven project decriptor
deleteJarArtifactsInDirectory
protected void deleteJarArtifactsInDirectory(java.io.File directory)
throws org.apache.maven.plugin.MojoExecutionException
- delete all Jar artifacts in the specified directory.
- Parameters:
directory
- to delete the jars from
- Throws:
org.apache.maven.plugin.MojoExecutionException
- only if a file exists and can't be deleted
deleteWarArtifactsInDirectory
protected void deleteWarArtifactsInDirectory(java.io.File directory)
throws org.apache.maven.plugin.MojoExecutionException
- delete all War artifacts in the specified directory (cleaning up EAR's for example).
- Parameters:
directory
- to delete the wars from
- Throws:
org.apache.maven.plugin.MojoExecutionException
- only if a file exists and can't be deleted
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.