Class AntCleanMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="clean")
    public class AntCleanMojo
    extends org.apache.maven.plugin.AbstractMojo
    Clean all Ant build files.
    Version:
    $Id: AntCleanMojo.java 1640228 2014-11-17 21:20:42Z hboutemy $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean deleteCustomFiles
      Forcing the deletion of the custom build.xml.
      private org.apache.maven.project.MavenProject project
      The working project.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      AntCleanMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      • 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
    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        private org.apache.maven.project.MavenProject project
        The working project.
      • deleteCustomFiles

        @Parameter(property="deleteCustomFiles",
                   defaultValue="false")
        private boolean deleteCustomFiles
        Forcing the deletion of the custom build.xml.
        Since:
        2.2
    • Constructor Detail

      • AntCleanMojo

        public AntCleanMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException