Package 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
Deletes the config files used by Rad-6. the files .j2ee and the file .websettings
- Author:
- Richard van Nieuwenhoven
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
deleteJarArtifactsInDirectory
(File directory) delete all Jar artifacts in the specified directory.protected void
deleteWarArtifactsInDirectory
(File directory) delete all War artifacts in the specified directory (cleaning up EAR's for example).org.apache.maven.project.MavenProject
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.eclipse.EclipseCleanMojo
delete, execute, getBasedir, getPackaging, setBasedir, setPackaging
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RadCleanMojo
public RadCleanMojo()
-
-
Method Details
-
cleanExtras
protected void cleanExtras() throws org.apache.maven.plugin.MojoExecutionException- Overrides:
cleanExtras
in classEclipseCleanMojo
- 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(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(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
-