Package org.machanism.machai.maven
Class Clean
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.maven.Clean
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="clean",
defaultPhase=CLEAN)
public class Clean
extends org.apache.maven.plugin.AbstractMojo
Mojo for cleaning up the Bindex plugin's temporary files.
Removes the log file containing Bindex inputs generated during the build process. This helps keep the workspace clean, especially before new builds. Example Usage:
mvn bindex:clean
- Author:
- Viktor Tovstyi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileProject base directory.static final StringName of the temporary directory used by Machai/Bindex.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Deletes the Bindex inputs log file inside the temporary directory.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
MACHAI_TEMP_DIR
Name of the temporary directory used by Machai/Bindex.- See Also:
-
basedir
Project base directory. Set by Maven.
-
-
Constructor Details
-
Clean
public Clean()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionDeletes the Bindex inputs log file inside the temporary directory.- Throws:
org.apache.maven.plugin.MojoExecutionException- if an exception occurs while cleaning up files
-