View Javadoc
1   package com.simpligility.maven.plugins.androidndk.phase00clean;
2   
3   import org.apache.maven.plugin.AbstractMojo;
4   import org.apache.maven.plugin.MojoExecutionException;
5   import org.apache.maven.plugin.MojoFailureException;
6   
7   import java.io.File;
8   
9   /**
10   * @author Johan Lindquist <johanlindquist@gmail.com>
11   * @goal clean
12   * @requiresProject true
13   * @requiresOnline false
14   * @phase clean
15   */
16  public class NdkCleanMojo extends AbstractMojo
17  {
18  
19      /**
20       * @parameter property="android.nativeBuildLibsOutputDirectory" default-value="${project.basedir}/libs"
21       */
22      File ndkBuildLibsOutputDirectory;
23  
24      /**
25       * @parameter property="android.nativeBuildObjOutputDirectory" default-value="${project.basedir}/obj"
26       */
27      File ndkBuildObjOutputDirectory;
28  
29      /**
30       * Forces the clean process to be skipped.
31       *
32       * @parameter property="android.nativeBuildSkipClean" default-value="false"
33       */
34      boolean skipClean = false;
35  
36      /**
37       * Specifies whether the deletion of the libs/ folder structure should be skipped.  This is by default set to
38       * skip (true) to avoid unwanted deletions of libraries already present in this structure.
39       *
40       * @parameter property="android.nativeBuildSkipCleanLibsOutputDirectory" default-value="true"
41       */
42      boolean skipBuildLibsOutputDirectory = true;
43  
44      /**
45       * Specifies whether the obj/ build folder structure should be deleted.
46       *
47       * @parameter property="android.nativeBuildSkipCleanLibsOutputDirectory" default-value="false"
48       */
49      boolean skipBuildObjsOutputDirectory = false;
50  
51      @Override
52      public void execute() throws MojoExecutionException, MojoFailureException
53      {
54  
55      }
56  
57  }