com.xlrit.gears.runner.LoadMojo Maven / Gradle / Ivy
package com.xlrit.gears.runner;
import com.xlrit.gears.runner.driver.Config;
import com.xlrit.gears.runner.driver.Driver;
import com.xlrit.gears.runner.driver.LoadConfig;
import com.xlrit.gears.runner.driver.LoadDriver;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
@Mojo(name = "load", defaultPhase = LifecyclePhase.VERIFY, requiresProject = false)
public class LoadMojo extends RunnerMojo {
@Parameter(property = "gears.runner.initAudit")
private Boolean initAudit;
@Override
protected Config getConfig() {
LoadConfig config = new LoadConfig();
if (initAudit != null) config.initAuditing = initAudit;
return config;
}
@Override @SuppressWarnings("rawtypes")
protected Driver getDriver() {
return new LoadDriver();
}
}