org.apache.maven.plugin.eclipse
Class RadCleanMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.eclipse.EclipseCleanMojo
          extended by org.apache.maven.plugin.eclipse.RadCleanMojo
All Implemented Interfaces:
ContextEnabled, 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

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RadCleanMojo()
           
 
Method Summary
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).
 MavenProject getProject()
          getter for the instancevarriable project.
 void setProject(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadCleanMojo

public RadCleanMojo()
Method Detail

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-2012 The Apache Software Foundation. All Rights Reserved.