java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.cassandra.DeleteCassandraMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
, org.apache.maven.plugin.Mojo
@Mojo(name="delete",
threadSafe=true)
public class DeleteCassandraMojo
extends org.apache.maven.plugin.AbstractMojo
Deletes the Cassandra home directory that we create for running Cassandra.
- Author:
- stephenc
-
Field Summary 
Fields
The directory to hold cassandra's database.
protected boolean
Fail execution in case of error.
Fields inherited from interface org.apache.maven.plugin.Mojo 
ROLE
-
Constructor Summary 
Constructors
-
Method Summary 
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 Details 
-
cassandraDir 
@Parameter(defaultValue="${project.build.directory}/cassandra")
protected File cassandraDir
The directory to hold cassandra's database.
-
failOnError 
@Parameter(property="cassandra.failOnError",
defaultValue="true")
protected boolean failOnError
Fail execution in case of error.
- Since:
- 2.0.0-1
-
Constructor Details 
-
DeleteCassandraMojo 
public DeleteCassandraMojo()
-
Method Details 
-
execute 
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException