public class RadCleanMojo extends EclipseCleanMojo
| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.project.MavenProject |
project
The project whose project files to clean.
|
| Constructor and Description |
|---|
RadCleanMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanExtras() |
private void |
deleteArtifactsInDirectory(java.io.File directory,
java.lang.String packagingType)
Deletes all artifacts of specified packaging type in the specified directory
|
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.
|
private void |
handleEarLibs()
Delete all jars in the EAR project root directory.
|
private void |
handleLibs()
Delete all jars in the project that were required by rad6.
|
private void |
handleWarLibs()
Delete all jars in the WAR project WEB-INF/lib directory.
|
void |
setProject(org.apache.maven.project.MavenProject project)
getter for the instancevarriable project.
|
delete, execute, getBasedir, getPackaging, setBasedir, setPackagingprivate org.apache.maven.project.MavenProject project
protected void cleanExtras()
throws org.apache.maven.plugin.MojoExecutionException
cleanExtras in class EclipseCleanMojoorg.apache.maven.plugin.MojoExecutionExceptionpublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
project - the maven project decriptorprivate void handleEarLibs()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - only if a file exists and can't be deletedprivate void handleLibs()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - only if a file exists and can't be deletedprivate void handleWarLibs()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - only if a file exists and can't be deletedprotected void deleteJarArtifactsInDirectory(java.io.File directory)
throws org.apache.maven.plugin.MojoExecutionException
directory - to delete the jars fromorg.apache.maven.plugin.MojoExecutionException - only if a file exists and can't be deletedprotected void deleteWarArtifactsInDirectory(java.io.File directory)
throws org.apache.maven.plugin.MojoExecutionException
directory - to delete the wars fromorg.apache.maven.plugin.MojoExecutionException - only if a file exists and can't be deletedprivate void deleteArtifactsInDirectory(java.io.File directory,
java.lang.String packagingType)
throws org.apache.maven.plugin.MojoExecutionException
directory - - to delete the jars frompackagingType - - packaging type (file extensions in fact - can be dangerous)org.apache.maven.plugin.MojoExecutionException - if a file exists and can't be deletedConstants.PROJECT_PACKAGING_JAR,
Constants.PROJECT_PACKAGING_WAR