@Mojo(threadSafe=true, name="run", defaultPhase=PRE_INTEGRATION_TEST) public final class RunMojo extends AbstractMojo
Constructor and Description |
---|
RunMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
clear()
If true, always delete existing database files and create a new instance
from scratch.
|
Config |
config()
Get configuration.
|
File |
dataDir()
Get directory with MySQL data.
|
File |
distDir()
Get directory with MySQL dist.
|
void |
execute() |
void |
run(Instances instances)
Run custom functionality.
|
void |
setSkip(boolean skp)
Set skip option.
|
File |
socketFile()
Get MySQL socket location.
|
getLog, getPluginContext, setLog, setPluginContext
public void run(Instances instances) throws MojoFailureException
instances
- Instances to work withMojoFailureException
- If failspublic void setSkip(boolean skp)
skp
- Shall we skip execution?public void execute() throws MojoFailureException
MojoFailureException
public File distDir() throws MojoFailureException
MojoFailureException
- If failspublic File dataDir()
public File socketFile()
public boolean clear()
public Config config()
Copyright © 2012–2014 jcabi.com. All rights reserved.