Class 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 Detail

      • RadCleanMojo

        public RadCleanMojo()
    • Method Detail

      • 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​(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