public abstract class AbstractTask extends Object implements Task
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CMDLINE_OPTION_REPORTDIR |
protected static String |
CMDLINE_OPTION_S |
protected static String |
CMDLINE_OPTION_STOREDIRECTORY |
protected Map<String,Object> |
pluginProperties |
protected com.buschmais.jqassistant.core.plugin.api.PluginRepository |
pluginRepository |
protected com.buschmais.jqassistant.core.report.api.ReportHelper |
reportHelper |
protected com.buschmais.jqassistant.core.splittingsupport.scm.RuleHelper |
ruleHelper |
protected String |
storeDirectory |
DEFAULT_REPORT_DIRECTORY, DEFAULT_RULE_DIRECTORY, DEFAULT_STORE_DIRECTORY, REPORT_FILE_XML| Constructor and Description |
|---|
AbstractTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTaskOptions(List<org.apache.commons.cli.Option> options) |
protected abstract void |
executeTask(com.buschmais.jqassistant.core.store.api.Store store) |
List<org.apache.commons.cli.Option> |
getOptions() |
protected String |
getOptionValue(org.apache.commons.cli.CommandLine options,
String option,
String defaultValue) |
protected List<String> |
getOptionValues(org.apache.commons.cli.CommandLine options,
String option,
List<String> defaultValues) |
protected com.buschmais.jqassistant.core.store.api.Store |
getStore()
Return the
Store instance. |
void |
initialize(com.buschmais.jqassistant.core.plugin.api.PluginRepository pluginRepository,
Map<String,Object> pluginProperties) |
void |
run() |
void |
withStandardOptions(org.apache.commons.cli.CommandLine options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithOptionsprotected static final String CMDLINE_OPTION_S
protected static final String CMDLINE_OPTION_STOREDIRECTORY
protected static final String CMDLINE_OPTION_REPORTDIR
protected String storeDirectory
protected com.buschmais.jqassistant.core.plugin.api.PluginRepository pluginRepository
protected com.buschmais.jqassistant.core.splittingsupport.scm.RuleHelper ruleHelper
protected com.buschmais.jqassistant.core.report.api.ReportHelper reportHelper
public void initialize(com.buschmais.jqassistant.core.plugin.api.PluginRepository pluginRepository,
Map<String,Object> pluginProperties)
throws CliExecutionException
initialize in interface TaskCliExecutionExceptionpublic void run()
throws CliExecutionException
run in interface TaskCliExecutionExceptionpublic void withStandardOptions(org.apache.commons.cli.CommandLine options)
withStandardOptions in interface Taskpublic List<org.apache.commons.cli.Option> getOptions()
getOptions in interface OptionsProviderprotected List<String> getOptionValues(org.apache.commons.cli.CommandLine options, String option, List<String> defaultValues)
protected String getOptionValue(org.apache.commons.cli.CommandLine options, String option, String defaultValue)
protected void addTaskOptions(List<org.apache.commons.cli.Option> options)
protected com.buschmais.jqassistant.core.store.api.Store getStore()
Return the Store instance.
protected abstract void executeTask(com.buschmais.jqassistant.core.store.api.Store store)
throws CliExecutionException
CliExecutionExceptionCopyright © 2016 buschmais GbR. All rights reserved.