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
@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
-
-
Constructor Summary
Constructors Constructor Description RadCleanMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanExtras()
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
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.eclipse.EclipseCleanMojo
delete, execute, getBasedir, getPackaging, setBasedir, setPackaging
-
-
-
-
Method Detail
-
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
-
-